Hi
Is it possible to enable the color picker of a RGB Color Knob, instead of
having to click on it ?
What i want to do is to pick multiple sample on the viewer, and with a
callback, do some stuff with it.
When i enable the picker of a Color Knob, i have no trouble to do so, and as
long as i don't unclick the picker next to the RGB values on the Knob, i can
pick and pick again.
However , when i connect a knobChanged callback on the knob, in this case to
generate some Text_Knobs, i can't "batch pick" multiples values. I have to
re-enable the picker after each click.
here is a small example, run this, and try to take multiple samples :
node = nuke.nodes.Blur()
node.addKnob(nuke.Color_Knob('picker'))
node.knob('knobChanged').setValue("""
if nuke.thisKnob().name() == 'picker':
nuke.thisNode().addKnob(nuke.Text_Knob( 'text' ,'text'
,str(nuke.thisKnob().value()) ) )
""")
So my question is : can i add, at the end of my code, a command to re-select,
re-enable the color picker button ?
Thanks_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python