Might pinch that, however the label I use may be main mattes, rather than the 
last node name. 

And of course they can have multi channels in them. 

I just found when you have pipes running several 'pages' worth, it saves all 
that scrolling up and down. But requires a bit of copy and paste. Obviously 
there are tools to modify multiple nodes at once on nukepedia. 

Maybe the python could be modified to take one master dot at the top and copy 
its label? Hmmmm. 

Howard

On 4 Oct 2012, at 03:22, Frank Rueter <[email protected]> wrote:

> 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
_______________________________________________
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