use node.setValues() like this:

n = nuke.selectedNode()

n['myDropdownMenu'].setValues(['a', 'b', 'c'])


Where you put the code depends on how you want to use it. Possibly into the gizmo's "onCreate" knob?!


On 6/10/12 2:24 AM, Luca Fiorentini wrote:
Hi,

I am trying to populate a dropdown menu in a gizmo through python but with no luck.
Imagine I have this function

[CODE]def populate():
    return 'first second third'[/CODE]

how can I use it? Where should I put the call for the function?
Thanks


--
*Luca Fiorentini - 3D Lighting Artist*
My Showreel <http://www.vimeo.com/lucafiorentini/reel> - My blog <http://lucafiorentini.wordpress.com> - My Flickr <http://www.flickr.com/photos/lucafiorentini>



_______________________________________________
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

_______________________________________________
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