Thanks for the tip Nathan. I'm thinking my best course of action is to run a function that looks for the node on script load. Though no luck as of yet. Bit of a programming newb. On Mar 26, 2011 8:20 PM, "Nathan Rusch" <[email protected]> wrote: > You can pickle Nuke nodes, which makes it easy to store them in Text knobs, for example, and recall them between sessions or from a database, etc. > > You could also just store the .writeKnobs() output string prefixed with the node’s class somehow, or put that output string in a dict with the node class and/or name and then pickle that... there are quite a few possibilities. > > -Nathan > > > > From: Brogan Ross > Sent: Saturday, March 26, 2011 8:49 AM > To: [email protected] > Subject: [Nuke-python] Storing a node in a knob? > > Hey guys I'm making a node that will store information about a shot and some buttons to run certain scripts. But I would like the script to remember the node. The best thing I've found so far is to add a knob to the root settings, but I'm not sure what kind of knob can store a node. Any ideas or better ways to store a variable in a script? > > > > -------------------------------------------------------------------------------- > _______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list [email protected] http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
