Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Using data from a file in a software shading node?
  RSS 2.0 ATOM  

Using data from a file in a software shading node?
Rate this thread
 
61159
 
Permlink of this thread  
avatar
  • Total Posts: 1
  • Joined: 19 October 2011 02:23 AM

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.



Replies: 0