User Data (XSISDK)
Be sure to read: Storing Custom (User) Data (http://softimage.wiki.avid.com/sdkdocs/dev_userdata.htm)
The following objects are used to store User Data inside a scene file:
And the GridData (XSISDK) object is a useful parameter type for storing 1 or 2 dimensional data inside a Custom Property.
You can also store your own data in external files (perhaps in XML files) and read/write it from scripting.
For a discussion of User Data and Custom Operators see Custom_Operators_(XSISDK)#User_Data.
[edit]
Examples
There are several examples in the XSI v5.0 example workgroup that show User Data usage.
- dotXSIConverter (http://softimage.wiki.avid.com/sdkdocs/examples/Addons/dotXSIConverter/netview_dotXSIConverter.htm) - Uses C++ API to import and export Custom Properties and other user data
- XSIGame (http://softimage.wiki.avid.com/sdkdocs/examples/Addons/XSIGame/netview_XSIGame.htm) - Realistic example of how game data can be represented inside XSI as user data.
- WireFrame (http://softimage.wiki.avid.com/sdkdocs/examples/Addons/ShowEdges/netview_ShowEdges.htm) - Demonstration of using a UserDataBlob to pass geometry data to Mental Ray.
This page was last modified 13:11, 1 Feb 2006.
This page has been accessed 3248 times.

