Nope as I mentioned below the data and the knob update fine The new value doesn't update in the panel.
I have a bool in the panel whose name is updated via method in my panel class. The new name isn't displayed unless the panel is minimized and then restored.. I am looking for a way to force a redraw of the panel. BTW the panel is not modal.. From: Hugo Léveillé <hu...@fastmail.net<mailto:hu...@fastmail.net>> Reply-To: Nuke Python discussion <nuke-python@support.thefoundry.co.uk<mailto:nuke-python@support.thefoundry.co.uk>> Date: Mon, 16 Apr 2012 17:26:44 -0500 To: Nuke Python discussion <nuke-python@support.thefoundry.co.uk<mailto:nuke-python@support.thefoundry.co.uk>> Subject: Re: [Nuke-python] Panel Callbacks? oops , I had a typo: =============== class Test( nukescripts.PythonPanel): def __init__( self ): nukescripts.PythonPanel.__init__( self, 'Test', 'my.panel') self.x = 0 self.push = nuke.PyScript_Knob("push","push") self.label = nuke.Text_Knob("0") self.pulldown = nuke.Enumeration_Knob("test","test",["Hello"]) self.addKnob(self.push) self.addKnob(self.label) self.addKnob(self.pulldown) def knobChanged(self,knob): if nuke.thisKnob().name() == "push": self.x+=1 self.label.setLabel("%s" % self.x) self.pulldown.setValues(["World"]) Test().showModalDialog() =================== On Mon, Apr 16, 2012, at 18:22, Hugo Léveillé wrote: quick exemple" ============= class Test( nukescripts.PythonPanel): def __init__( self ): nukescripts.PythonPanel.__init__( self, 'Test', 'my.panel') self.x = 0 self.push = nuke.PyScript_Knob("push","push") self.label = nuke.Text_Knob("0") self.pulldown = nuke.Enumeration_Knob("test","test",["Hello"]) self.addKnob(self.push) self.addKnob(self.label) self.addKnob(self.pulldown) def knobChanged(self,knob): if nuke.thisKnob().name() == "push": self.x+=1 self.label.setLabel("%s" % self.x) self.pulldown.setValues(["World"]) Test().showModalDial =============================== Is that what you are looking for ? On Mon, Apr 16, 2012, at 16:01, Jean Mistrot wrote: A bit of a nub question. I have a PythonPanel that dynamically changes the name and label of a list of boolean knobs it presents to the user after loading a bunch of data during a separate UI event. I.E * user pushes button to update data * Data collected * Boolean knob list updated The data updates fine but the UI doesn’t refresh. I want to force the panel to update in the UI but am having a heck of a time understanding how to register the panel with the global updateUI callback. Is this the correct way to do this? Does anyone have a good example? I have gone through the docs but they are not very enlightening. Jm _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk<mailto:Nuke-python@support.thefoundry.co.uk>, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -- Hugo Léveillé TD Compositing, Vision Globale hu...@fastmail.net<mailto:hu...@fastmail.net> _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk<mailto:Nuke-python@support.thefoundry.co.uk>, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -- Hugo Léveillé TD Compositing, Vision Globale hu...@fastmail.net<mailto:hu...@fastmail.net>
_______________________________________________ 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