Re: [Nuke-python] Populate a gizmo´s dropdown menu with python

2012-10-06 Thread Luca Fiorentini
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: >

Re: [Nuke-python] Populate a gizmo´s dropdown menu with python

2012-10-06 Thread Luca Fiorentini
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

Re: [Nuke-python] Populate a gizmo´s dropdown menu with python

2012-10-05 Thread Frank Rueter
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

[Nuke-python] Populate a gizmo´s dropdown menu with python

2012-10-05 Thread Luca Fiorentini
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