you can use a little snippet of tcl to get this to work:

lindex list index

the above command will return the item in list at the given index, as an example thi swill return "a":
lindex "a b c" 0

this is for "b":
lindex "a b c" 1

and for "c":
lindex "a b c" 2

So is in your NoOp_Output you could write a list of shot names into the "writeName" knob (just with a white space), e.g. "shotA shotB shotC". The use the SwitchName node to get the index. Thi sis the resulting tcl command:

[lindex [value writeName] [value SwitchNames.which]]


This will look up whatever the name from the list of names based on the SwitchNames setting and can be used in the Write node's file knob to generate the output name.

Or, even easier if your naming convention agrees with it, you generate the output name directly based on the SwitchNames setting like:
"shot[value SwitchNames.which]"


Stuff that into the Write node and you're off.




On 10/08/12 3:40 PM, maerlyn wrote:
I should probably add that I am not very good with scripting at all. Please take it easy on layman Wink


_______________________________________________
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

Reply via email to