Thanks Nathan, we'll try your embedded ColorLookup suggestion.

Colin


On 9 September 2013 18:49, Nathan Rusch <[email protected]> wrote:

>   Unfortunately, many of the knobs cannot be created using `addUserKnob`
> calls (trying it with the LookupCurves_knob enum ID crashes Nuke), and thus
> Nuke writes them as Obsolete_knobs when the node is serialized; the Python
> knob class is really just a convenience interface to an existing knob. If
> you need it on a group/gizmo, I would just embed a ColorLookup node and
> expose that.
>
> -Nathan
>
>
>  *From:* Colin Alway <[email protected]>
> *Sent:* Thursday, September 05, 2013 7:21 AM
> *To:* Nuke Python discussion <[email protected]>
> *Subject:* [Nuke-python] LookupCurves_Knob
>
>    Hi all,
>
> Has anyone built a LookupCurves_Knob into a Group/Gizmo? You can't create
> one through the Manage User Knobs... menu, but it is via python. The
> problem is you can't save the script or copy/paste the node without an
> error:
>
> Obsolete_Knob ... call is wrong, probably a missing NULL for script
> argument.
>
> Here's the creation code:
>
> nn = nuke.createNode('NoOp', inpanel=True)
>
> kk = nuke.LookupCurves_Knob('', 'curves')
>
> nn.addKnob( kk )
>
> kk.addCurve('mycurve')
>
> Interestingly, if you change inpanel=True to inpanel=False you get a
> different result: instead of just mycurve you also get a default curve in
> the curve list.
>
> Searching around we've found no working examples... is this just not
> possible without a plugin?
>
> thanks
> Colin
>
> --
> colin alway
>
> ------------------------------
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>


-- 
colin alway
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to