bugger tcl.
def getParentNode(node):
parentNode = node.input(0)
if parentNode.Class() == 'Dot':
return getParentNode(parentNode)
else:
return parentNode.name()
nuke.knobDefault('Dot.label', "[python getParentNode(nuke.toNode('Dot1'))]")
On 10/4/12 1:46 PM, chris wrote:
On 10/3/12 at 12:57 AM, (Howard Jones) wrote:
my favorite - label the dots. And have one just before inputs so you
can easily see where each input came from.
i like that one a lot! just added this to my menu.py
nuke.knobDefault('Dot.label', ' [value input0.name]')
might be worth thinking about how to get the name of the next non-dot
node when traveling up the tree (in case one uses several dots in a
row to direct the flow), but no idea how to do that through TCL.
++ chris
_______________________________________________
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