You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 64ea0d3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/main/resources/script_templates/Neuroanatomy/Recipes/BigViewerRecording.groovy
+45-37Lines changed: 45 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -5,24 +5,30 @@
5
5
* # Workflow
6
6
* 1. Open your data in SNT's BVV or BDV
7
7
* 2. Navigate to a view you like and press 'K' to capture a keyframe.
8
-
* Each press prints a line to the console, e.g.:
9
-
* kf00 = new Keyframe("transform=...|cam=...|visible=...|accel=symmetric|frames=60")
10
-
* The line is also copied to the clipboard.
8
+
* Each press appends a line to a running 'kfs' block that is printed to the console and
9
+
* copied to the clipboard, e.g.:
10
+
* def kfs = [
11
+
* new Keyframe("transform=...|cam=...|visible=...")
12
+
* .frames(60).accel("symmetric"),
13
+
* ]
11
14
* 3. Repeat for each viewpoint (rotate, zoom, toggle channels, adjust slab, annotations, etc.)
12
-
* 4. Paste all captured keyframes into this script, set the output directory, and run it.
15
+
* Press Shift+K to discard the captured keyframes and start over
16
+
* 4. Paste the block into this script (replacing the 'kfs' definition below), adjust the frames
17
+
* and accel of each keyframe, set the output directory, and run it.
13
18
*
14
19
* # Keyframes and Keyframe Options
15
20
*
16
21
* A keyframe stores viewer transform (rotation/zoom/pan), camera depth and slab clipping (BVV only),
17
22
* timepoint, display levels and LUT colors (both interpolated between keyframes), visible
18
23
* channels/paths/annotations, easing curve, and the number of frames for the transition into that
19
-
* keyframe. A serialized keyframe looks like this:
20
-
* kf01 = new Keyframe("transform=0.8,-0.6,0,100,0.6,0.8,0,-200,0,0,1.0,-300|cam=2000,800,800|visible=vol:Ch1;vol:Ch2;paths|accel=slow_start|frames=90")
24
+
* keyframe. A captured keyframe looks like this:
25
+
* new Keyframe("transform=0.8,-0.6,0,100,0.6,0.8,0,-200,0,0,1.0,-300|cam=2000,800,800|visible=vol:Ch1;vol:Ch2;paths")
26
+
* .frames(90).accel("slow_start")
21
27
*
22
-
* You can adjust per-keyframe properties after capture:
28
+
* Edit the trailing calls to adjust the transition into each keyframe:
0 commit comments