If a plug-in uses parameter blocks, and inherits from Animatable, it must expose the parameter blocks to 3ds Max by overriding the following methods of Animatable:
The following example shows a typical implementation for a plug-in with only one parameter block:
class MyPlugin : SimpleObject2
{
intNumParamBlocks() {
return 1;
}
IParamBlock2* GetParamBlock(int i) {
return i == 0 ? pblock2 : NULL;
}
IParamBlock2* GetParamBlockByID(BlockID id) {
return (pblock2->ID() == id) ? pblock2 : NULL;
}
};
Note that even if you override these functions, you will still haveto expose a parameter block as a reference. See the topic Exposing and Managing References for more information.