|
Hi,
I’m just getting into the Maya API - this is my first post here.
I am writing a software shading node that needs access to data stored in a file.
I have added a filename input attribute to my node. I want to open the file when the filename changes and store the data in the node so that it can be accessed during calls to the node’s compute() function.
How should I store the data? Should I just store a pointer to the data in a hidden attribute?
Also, how should I manage the life time of this data, i.e. how do I know when a node is deleted to deallocate my data?
Thanks.
|
|
|