I bound this one to a hotkey because I use a lot:

print '\n'.join(sorted(nuke.selectedNode().knobs()))

-Nathan



From: Howard Jones 
Sent: Monday, December 19, 2011 8:37 AM
To: Nuke Python discussion 
Subject: Re: [Nuke-python] Listing knobs of a node

one way...
for i in nuke.selectedNode().knobs():
print i


another


print (nuke.selectedNode().knobs().keys())

Howard



------------------------------------------------------------------------------
  From: Fredrik Averpil <[email protected]>
  To: Nuke Python discussion <[email protected]> 
  Sent: Monday, 19 December 2011, 16:14
  Subject: [Nuke-python] Listing knobs of a node


  Hey all, 

  By using print(nuke.selectedNode()), I can list all knobs of a node but I 
will also get them together with their value.

  How can I print them out without the value?

  I'm trying to put all knobs into a dropdown menu...


  Cheers,
  Fredrik



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





--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
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