Notifications
Clear all
[Closed] SDK Question: NULL pointer in ParamDef
Nov 02, 2006 7:36 pm
I am using MAX 7. When I load a material library from a file, using SDK code, and try to access the IParamBlock2 -> ParamBlockDesc2 -> paramdefs[<item>] values for the materials in the library they are uninitialized. However, the name of the material is still stored in the MtlBase* in the MtlBaseLib. If I load the materials individually in MAXScript and actually create an instance of them, put them in the library and then run the SDK code on the already loaded library, all the values are where they should be.
My question is: can I create an actual implementation of the material (like I am currently doing in MAXScript) using the SDK? It would be nice because doing this in MAXScript makes my tool slow.
Thanks,
Brendan