Hey Rich -
It should reset to whatever value the knob was set to when you initially
created the gizmo. You can edit the value saved in the .gizmo file in a
text editor or in nuke convert back to a group, set the knob to the default
value you want, and then save the gizmo again.
For instance, if I've got this at the head of the gizmo file:
Gizmo {
amount 0.1
}
It should reset to 0.1. Just change that to another value, save the file,
and that's the new default.
Be careful about this changing the behavior of existing scripts. If you
have scripts using that gizmo that didn't set the knob different from
default, it isn't saved in the nuke script. When those scripts reload after
you change the default, they'l get the new value. If you want that, super!
If not, save a new version of the gizmo so old scripts can still pick up
the original and render the same.
Matt
On Fri, Jul 31, 2015 at 12:19 PM, Rich Bobo <[email protected]> wrote:
> Hi,
>
> Is there a way to set the default “reset” value for a knob that you have
> added to a menu?
>
> For instance, in a gizmo, I have added a Floating Point Slider knob. When
> the user does a CNTRL-click (or CMD-click) on the slider, I would like it
> to reset to 1.0 — not 0.0.
>
> Can it be easily done…?
>
> Thanks,
> Rich
>
>
> Rich Bobo
> Senior VFX Compositor
> Armstrong White
> Email: [email protected]
> http://armstrong-white.com/
>
> Email: [email protected]
> Mobile: (248) 840-2665
> Web: http://richbobo.com/
>
>
> _______________________________________________
> 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