Array_Knob objects (and their subclasses) have a .setSingleValue method as well.

-Nathan


-----Original Message----- From: Magno Borgo
Sent: Thursday, October 09, 2014 2:17 PM
To: Nuke Python discussion
Subject: Re: [Nuke-python] RGB simple/multiple values

Excellent, that will do the trick.
Many thanks.


Hi Magno. You could try changing the type that you feed into setValue like this:

nuke.selectedNode()['multiply'].setValue([0,0,0,0])

versus

nuke.selectedNode()['multiply'].setValue(0)


Does that do what you want?
Pete

On Fri, Oct 10, 2014 at 3:42 AM, Magno Borgo <li...@borgo.tv> wrote:
Hi there.

How do I activate the "switch between single to multple values" in an color
knob via python?
The equivalent of clicking the "4" icon on the UI?


Magno.



--
Using Opera's mail client: http://www.opera.com/mail/
_______________________________________________
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





--
Using Opera's mail client: http://www.opera.com/mail/
_______________________________________________
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