Hello Again, Nuke!

Is there a way to create an instance of a Python object and have it be
persistently stored with a node instance? I was thinking I could just add
the instance to the node's metadata, which seems to be just a python
dictionary, and therefore capable of storing any Python object. However, I
wasn't sure if the dictionary was created on the fly as a mirror of some
internal, non-pythonic representation. Also, metadata seems to be copied
from one node to the next, which could be confusing with respect to this
unusual usage of it.

I have a python class (which, sadly, I don't have a C++ version of ) which
carries some moderately expensive state with it that I need to use to
compute parameter data for the node. I'd like to be able to create an
instance of this class and stick it onto the node (like UserData on Widgets
in Xt). Can I do this?

Chris



-- 
I think this situation absolutely requires that a really futile and stupid
gesture be done on somebody's part. And we're just the guys to do it.
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to