Aha - thanks, Matt! I see that is the case, now that I am no longer testing and developing the tool as a Group. After I finally made a Gizmo, it does reset to the desired default values.
Rich > On Jul 31, 2015, at 4:44 PM, Matt Plec <[email protected]> wrote: > > 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] > <mailto:[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] <mailto:[email protected]> > http://armstrong-white.com/ <http://armstrong-white.com/> > > Email: [email protected] <mailto:[email protected]> > Mobile: (248) 840-2665 <tel:%28248%29%20840-2665> > Web: http://richbobo.com/ <http://richbobo.com/> > > _______________________________________________ > Nuke-python mailing list > [email protected] > <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > <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
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
