Ean,

Another great suggestion. I have that working now. That makes a lot more sense, 
anyway, since if the user deletes the original Write node, I can check for that 
- and, if the hidden knob is not there, I can create it again on the new Write 
node and get the node's values for my panel again.

...Learned some more today. Any day that I can learn some more Nuke Python is a 
good day!  8^)

Thanks again --
Rich


On Nov 13, 2013, at 5:52 PM, Ean Carr <m...@eancarr.com> wrote:

> I'm not totally clear on what you're trying to do, but rather than the root 
> node, why not add a hidden knob on the magic Write node which an onScriptLoad 
> callback function looks for? -E
> 
> 
> On Wed, Nov 13, 2013 at 9:32 PM, Richard Bobo <richb...@mac.com> wrote:
> Ean,
> 
> OK - following up on your suggestion, I have gotten some ideas from our 
> in-house programmer. Now, I see how I can add a hidden String_Knob in the 
> root node. That should work well to carry my Write node name string and I can 
> reference it with a toNode call.
> ...So many things to learn.  (8^\
> 
> Thanks!
> 8^)
> 
> 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
> 
> 
> 
> 
> -- 
> 
> _______________________________________________
> 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

Reply via email to