Notifications
Clear all
[Closed] access object properties from C++
Jan 06, 2011 9: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 << “
“;
}
}