Public Attributes

ParamBlockDescID Class Reference

This reference page is linked to from the following overview topics: Creating a Parameter Block 1, Backward Compatibility, Creating the Parameter Block and Referencing It, Supporting Save to Previous.


Search for all occurrences

Detailed Description

See also:
Class ParamBlockDesc.

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

class ParamBlockDescID {



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.

#include <iparamb.h>

List of all members.

Public Attributes

ParamType  type
UserType user
BOOL  animatable
DWORD  id

Member Data Documentation

ParamType type
DWORD id

ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID
ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID ParamBlockDescID