nuke.selectedNode().Class() will retur the class of the node

quick exemple

set cut_paste_input [stack 0]
version 6.3 v6
push $cut_paste_input
NoOp {
 name NoOp1
 selected true
 xpos -549
 ypos -34
 addUserKnob {20 User}
 addUserKnob {22 hello l "Print Class" T
nuke.message(nuke.selectedNode().Class()) +STARTLINE}
}




On Thu, Jul 26, 2012, at 12:10, ae.branton wrote:

Hey, sorry another question.
Still searching through some docs while i await a brilliant reply
haha, but i was wodnering if anyone knew if there was a way to
get a node class from its info.
Something like, clicking a script button on a no op that gathers
the info form a selected node in the dag, and puts its node class
into a text input knob in the same node as the py script.
Thanks guys!

_______________________________________________

Nuke-python mailing list

[1][email protected],
[2]http://forums.thefoundry.co.uk/

[3]http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-
python

References

1. mailto:[email protected]
2. http://forums.thefoundry.co.uk/
3. http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


-- 
  Hugo Léveillé
  TD Compositing, Vision Globale
  [email protected]

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

Reply via email to