Ean, That’s great to know and I will keep that trick in my back pocket. However, in this case, the value is not a default. I actually would like to keep the name of an arbitrary Write node and restore that with the script/panel. Basically, my panel is “connected” to the Write node in the script (only by the user selecting it) and gets its values from that Write node. I was hoping to use nuke.toNode(‘WriteNodeHere’) to “reconnect” the panel and its values to the Write node when the script is reloaded. ...Well, at least that’s what I’d *like* to do… Maybe I’m missing something in your suggestion, though…? Please correct me if I’m not grasping it.
Thanks, Rich On Nov 12, 2013, at 5:59 PM, Ean Carr <m...@eancarr.com> wrote: > Hey Rich, I always keep any per-script knobs in the nuke.root() node. Any > panels you instantiate can check for those values and use any existing ones > as defaults. Cheers, -Ean > > > On Tue, Nov 12, 2013 at 10:12 PM, Richard Bobo <richb...@mac.com> wrote: > Hi all, > > I’m wondering if there is a way to save and restore the data from a custom > Python Panel? > > For instance… Say I have a String_Knob with some text in it and I want to > bring that back when I load my script - along with the registered PythonPanel > I’ve created. In looking at my saved script in a text editor, it seems that > only the registered name of the panel and its location are saved. There’s a > "dock id", a “page id” and not a whole lot more… Any way to save custom data > from a registered panel - or should I forget about it and go in the direction > of a Gizmo, instead…? > > Thanks, > Rich > > > Rich Bobo > Senior VFX Compositor > Armstrong-White > http://armstrong-white.com/ > > Email: richb...@mac.com > Mobile: (248) 840-2665 > Web: http://richbobo.com/ > > "Few will have the greatness to bend history itself, but each one of us can > work to change a small portion of events, and in the total of all those acts > will be written the history of this generation." > - Robert F. Kennedy > > > > > > > _______________________________________________ > 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 > > > > > -- > > _______________________________________________ > 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
_______________________________________________ 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