Thanks Steve! That works great. Sent from my iPhone
On Jun 11, 2012, at 7:23 AM, Steven Booth <[email protected]> wrote: > Jeff, > > The reason you're having trouble derives from the fact that the UI > (implemented as a set of QT Widgets) doesn't know that the underlying, > connected variable has changed. You need to specifically update the UI, and > tell it to repaint itself. Thus, if you had a Float_knob named 'myKnob', and > you wanted to set its value to '12.3', you would do this: > > knob(“myKnob”)->set_value(12.3); > knob(“myKnob”)->updateWidgets(); > > I hope that helps. > > Steve > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jeff Belgum > Sent: Monday, June 11, 2012 6:12 AM > To: [email protected] > Subject: [Nuke-dev] Updating knobs > > Hi everyone, > > I am trying to update the value of a knob based on mouse input in the viewer. > I've used the 'handle.cpp' as a template to get myself started and am able to > change the float variable associated with a Float_Knob. But the knob itself > does not update in the nuke gui. I'm sure I'm missing some important step to > pass that value to the knob, but I can't seem to figure out what it is. Can > anybody help me out? > > Cheers, > Jeff > > Sent from my iPhone > _______________________________________________ > Nuke-dev mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev > (CONFIDENTIALITY NOTICE: The information contained in this email may be > confidential and/or privileged. This email is intended to be reviewed by only > the individual or organization named above. If you are not the intended > recipient, or an authorized representative of the intended recipient, you are > hereby notified that any review, dissemination or copying of this email, or > the information contained herein is strictly prohibited. If you have received > this communication in error, please notify the sender by return email and > delete this email from your system. Thank You.) > > _______________________________________________ > Nuke-dev mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
