Hi fellow TDs,
I'm attempting at the moment, without luck- to try and create an IF
statement based on a parent's pulldown choice knob.
e.g.
This is how I'm querying it as I can't find the TCL equivalent of .array()
[python -eval {nuke.thisParent()['asdf'].array()[0]}]
However I'm not sure in python or TCL to return a different string
based on the result of that array. (in this particular scenario I need
a work around for using the parent's knob's value directly)
Attempting (without success)
[value [parent.asdf ? "return this string" : "else return this string"]]
or in python:
[python -eval {if nuke.thisParent()['asdf'].array()[0]:return 'hi'}]
Hm...
Any ideas would be appreciated!
Cheers,
Jordan
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python