here is a tcl command that returns the camera's name that is selected
via the SwitchCameras node ("topnode" is necessary to make sure it
traverses Dot nodes between the Camera and the Switch):
[value [topnode [input SwitchCameras [value SwitchCameras.which]]].name]
if you break it down from the inside out it does this:
"input node index" - this returns the input of a given node based on the
index
so if you feed SwitchCameras into the above you get:
input SwitchCameras index
use the SwitchNode's current setting as the index to determine which
input you want to follow:
input SwitchCameras [value SwitchCameras.which]
what you get now may be a dot node connected to the SwitchCameras node,
so use "topnode" to take it all the way up the branch:
topnode [input SwitchCameras [value SwitchCameras.which]]
this now returns the top most node connected to the SwitchCamera's
active pipe. We want it's name though, not the node object:
value [topnode [input SwitchCameras [value SwitchCameras.which]]].name
Use the above in square brackets inside the Write node and your camera
names will dictate the Write node's output name.
On 10/08/12 4:27 PM, maerlyn wrote:
Wow, thanks for getting back to me that fast!
The solution seems great, but it might introduce user errors on my
side. Each shot has the following naming structure:
ABC_101_123_001
ABC_101_123_002
ABC_101_123_003
and so on
If I write 200 of those into the "writeName" knob, I can see myself
messing something up somewhere down the line.
I had to get started before posting and named my cameras accordingly.
Is there a way of channeling the camera name into the write node?
I know that one can get the name of a top most node to show up the
write node, though I didn't even manage that.
Cheers
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users