Sorry my fault! I was using setValue instead of setValues :)
Now it is working perfectly!
Is it possible to execute something when the pulldown opens? I would like
to populate it when the user open it, or, at least, reopen the gizmo panel
On Sat, Oct 6, 2012 at 2:02 PM, Luca Fiorentini
wrote:
>
Hi Frank,
Thanks for the answer. I didn't know about those kind of knobs and the
possibility to add them to a group/gizmo. I am trying to wrap my head
around them :)
I tried that code but, I don't know if I am doing something wrong, but I am
only able to set an already created dropdown while I wou
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 m
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