Hi !

Simply use the input() method:


for i in nuke.selectedNodes():
    i['label'].setValue(str(i.input(0).name())

Obviously, if you want the name of the second parent, you may want to change 
the argument: input(1) etc 

To list the channels used by the input node:

nuke.selectedNode().input(0).channels()


Cheers,
Justin



_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to