View Full Version : access object properties from C++

01 January 2011, 09:29 AM
I have plugin in C++ and objects, actually CAT rig, in max.
My plugin should get parameters from CAT rig e.g. CATrig.catmode...
How can I access this parameters in C++??? :banghead:

i'm trying this code for printing names of parameters but my output is empty string "" for all parameters.

Object* obj = node->GetObjectRef();

int num_pblock2 = obj->NumParamBlocks();
for (int pbID = 0; pbID < num_pblock2; pbID++) {
IParamBlock2 *pb2 = obj->GetParamBlockByID(pbID);

for (int pID = 0; pID < pb2->NumParams(); pID ++ )
const ParamDef& def = pb2->GetParamDef(pID);
myfile << def.int_name << "\n";

CGTalk Moderation
01 January 2011, 09:29 AM
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.