Beta memo: at this time the forums and insider use two different registration and login systems.
We're working on unifying the process, so if you register with your same e-mail on the forums and insider we'll merge your accounts later.
To access the forums please use the login below. -Thanks.
Results 1 to 2 of 2
Thread: Nuke scripting
-
18th July 2012, 02:59 #1
Member
- Join Date
- Jul 2012
- Posts
- 1
Nuke scripting
Hey guys,
I\'ve been a Nuke compositor (professionally) for a few years but have limited experience with scripting. Right now I\'m working freelance on a stereo 3D project with a few hundred shots, and need an effective way to export everything once the 3D is finished. All the VFX work is done and I\'m doing conversion. I developed a Nuke Gizmo that lets me attach a depth map and a finished shot, and with just a few slider adjustments it outputs a left and right eye image with the correct offset for each eye.
What I\'m having trouble with is finding an effective way of splitting the left and right eye and writing each to a separate .mov file. As I said, there are around 300 shots and naming 600 write nodes would be phenomenally time consuming. What would be the best way to script a write node that will automatically export a shot with an appropriate left or right eye tag, followed by the name of the original file I\'m inputting to my script. One of the issues I\'ve had is that I can\'t simply write a script that references the \"top\" node in the tree, because there is no \"top\" node since I am starting with a Gizmo that has two inputs.
Thanks guys!
Cheers,
Evan Laffin, Compositor
-
19th July 2012, 05:39 #2
Member
- Join Date
- Sep 2004
- Posts
- 6
Maybe you use some TCL and solve it?
You can access any node by the name, grabbing the name of the left/right reads.:
[knob Read1.file]
and looking at some tcl functions on the manual you can manipulate the strings:
ex:
[join [lrange [split [file dirname [knob root.name]] \"/\"] 0 end-1] \"/\"]
Paste these commands on a backdrop node label to test them easily/on the flyLast edited by magnob; 19th July 2012 at 05:40. Reason: typo

Reply With Quote
