Message 1 of 1
Custom Attributes on a Material

Not applicable
12-05-2011
03:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all!
I'm new to the Max SDK but I have done some MaxScript and could use a couple pointers about how to accomplish what, in MaxScript, is a pretty simple task.
Basically I want to attach some custom attributes to each material that is created, and then pop up a dialog to edit them.
In MaxScript, I would declare a custom attributes block definition. Then, I intercept a magical callback that happens when a material is created. At that point I just tell the material to add an instance of the custom attribute block I declared.
How would I do such a thing in the SDK?
Thanks in advance!
I'm new to the Max SDK but I have done some MaxScript and could use a couple pointers about how to accomplish what, in MaxScript, is a pretty simple task.
Basically I want to attach some custom attributes to each material that is created, and then pop up a dialog to edit them.
In MaxScript, I would declare a custom attributes block definition. Then, I intercept a magical callback that happens when a material is created. At that point I just tell the material to add an instance of the custom attribute block I declared.
How would I do such a thing in the SDK?
Thanks in advance!