Class ParamBlockDescID

3DS Max Plug-In SDK

Class ParamBlockDescID

See Also: Class ParamBlockDesc.

class ParamBlockDescID

Description:

The parameter block descriptor describes each parameter in a parameter block. This version has an ID used to identify each parameter.

class ParamBlockDescID {

public:

ParamType type;

UserType *user;

BOOL animatable;

DWORD id;

};

Data Members:

ParamType type

The parameter type. See List of Parameter Types.

UserType *user

This value is not currently used -- it must always be passed as NULL.

BOOL animatable

This is a flag indicating if the parameter may be animated or not. Pass TRUE if the value may be animated and FALSE if it is constant.

DWORD id

This is an ID used to identify this parameter. This provides a solution to the problem of backwards compatibility. If you alter the parameter structure of your plug-in in the future (by adding or deleting parameters for example) previously saved 3ds max files will be incompatible. You can however use a mechanism which uses these IDs to convert older versions to the current version. See the Advanced Topics section on Parameter Maps for more detail on how this is done.