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 #1Member
- Join Date
- Jul 2012
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.
Evan Laffin, Compositor
19th July 2012, 05:39 #2Member
- Join Date
- Sep 2004
Maybe you use some TCL and solve it?
You can access any node by the name, grabbing the name of the left/right reads.:
and looking at some tcl functions on the manual you can manipulate the strings:
[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 fly
Last edited by magnob; 19th July 2012 at 05:40. Reason: typoMagno Borgo
3D | VFX | Motion Graphics
Brasil: Curitiba: GMT= -3