not on computer right now but this should get you started

t = str(type(nuke.selectedNode()['shutter'].value()))

nuke.selectedNode()['s'].setValue(t)

On Fri, Jul 27, 2012, at 09:53, ae.branton wrote:

Hey guys. So ive built a tool but i have one final question that
im not 100% sure on how to do.
so far the tool does this:
you select a group of nodes, click a button and it returns a
dropdwon with a list of the class types you have selected. You
pick one and click another button and it returns a list of all
the knobs on that node type, also in a drop down.
Once you have selected a knob i want to add another button that
analyzes that knob type and returns in a menu somewhere (maybe in
a text input?) that tells you if the value is a string (such as
roto clip type), boolean (grade white clamp) or whatever it is.
Anyone have a clue how to do that?

_______________________________________________

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