PDA

View Full Version : SDK Question: NULL pointer in ParamDef


hannahol
11-02-2006, 06: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

CGTalk Moderation
11-02-2006, 06:36 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.