Structure PB2Value

3DS Max Plug-In SDK

Structure PB2Value

See Also: Class IParamBlock2, Class PBAccessor, Class PBBitmap, Class ReferenceTarget, Class Control.

Description:

This structure is available in release 3.0 and later only.

This structure holds the value in a ParamBlock2 or PBAccessor.

typedef struct

{

 union

 {

  int i;

This is used by: TYPE_INT, TYPE_BOOL.

  float f;

This is used by: TYPE_FLOAT, TYPE_ANGLE, TYPE_PCNT_FRAC, TYPE_COLOR_CHANNEL.

  Point3* p;

This is used by: TYPE_POINT3, TYPE_RGBA.

  TimeValue t;

This is used by TYPE_SPINNER when the EditSpinnerType is EDITTYPE_TIME.

  TCHAR* s;

This is used by TYPE_EDITBOX or TYPE_STRING.

  PBBitmap* bm;

This is used by TYPE_BITMAP.

  ReferenceTarget* r;

A generic reference target pointer (Mtl*, Texmap*, INode*).

  Matrix3* m;

This is used by TYPE_MATRIX3. This member is available in release 4.0 and later only.

  Control* control;

This value replaces the i,f,p or t values if they are actually animated (and thus have a controller assigned).

 };

 BYTE flags;

 These flags are for internal use only, do not alter them.

} PB2Value;