The following are the valid types for parameters in parameter blocks.
The type is passed to the ParamBlockDesc2
constructor as the ParamType type argument of the
<required_param_spec>.
The first group are single parameters while the second are tables of the first set of parameters.
TYPE_FLOAT - A single floating point value.TYPE_INT - A single integer value.TYPE_RGBA - A Point3 value with an implied
stdColor255Dim dimension.TYPE_POINT3 - A Point3 data type value.TYPE_BOOL - An integer used as a boolean
value.TYPE_ANGLE - A floating point value with an
implied stdAngleDim dimension.TYPE_PCNT_FRAC - A floating point with an implied
stdPercentDim dimension.TYPE_WORLD - Specify that a parameter represents
world distance units. This implies a parameter dimension of
stdWorldDim.TYPE_STRING - A character string
(TCHAR*). The string has a local copy made and managed
by the paramblock.TYPE_FILENAME - This is the same as
TYPE_STRING, but is used with
TYPE_FILEOPENBUTTON and
TYPE_FILESAVEBUTTON parameter map controls.TYPE_HSV - This option is obsolete.TYPE_COLOR_CHANNEL - A single floating point value
with an implied stdColor255Dim dimension.TYPE_TIMEVALUE - A single integer value used as a
TimeValue -- implies a stdTimeDim dimension.TYPE_RADIOBTN_INDEX - This is currently unused but
intended to allow specification of state names to make scripter
access symbolic.TYPE_MTL - A pointer to a material object
(Mtl*). This can be one of three types: a reference
owned by the parameter block, a reference owned by the block owner,
or no reference management (just a copy of the pointer).TYPE_TEXMAP - A pointer to a texmap object
(Texmap*). This can be one of three types: a reference
owned by the parameter block, a reference owned by the block owner,
or no reference management (just a copy of the pointer).TYPE_BITMAP - A pointer to a Bitmap/BitmapInfo
object (PBBitmap*). This can be one of three types: a
reference owned by the parameter block, a reference owned by the
block owner, or no reference management (just a copy of the
pointer).TYPE_INODE - A pointer to a node
(INode*). This can be one of three types: a reference
owned by the parameter block, a reference owned by the block owner,
or no reference management (just a copy of the pointer).TYPE_REFTARG - A pointer to a Reference arget
(ReferenceTarget*), all the RefTarg types in this
group can be one of three types: Reference owned by parameter
block, Reference owned by block owner, No reference management
(just a copy of the pointer).TYPE_INDEX - This is used for parameters that are
0-based, but exposed to MAXScript as 1-based. For example a vertex
index.TYPE_MATRIX3 - A standard max Matrix3TYPE_PBLOCK2 - A pointer to an IParamBlock2 object.TYPE_FLOAT_TAB - A table of floating point
values.TYPE_INT_TAB - A table of integer values.TYPE_RGBA_TAB - A table of Point3 values with an implied
stdColor255Dim dimension.TYPE_POINT3_TAB - A table of Point3 data type values.TYPE_BOOL_TAB - A table of integers used as a set
of boolean values.TYPE_ANGLE_TAB - A table of floating point value
with an implied stdAngleDim dimension.TYPE_PCNT_FRAC_TAB - A table of same as
TYPE_STRING, but is used with
TYPE_FILEOPENBUTTON and
TYPE_FILESAVEBUTTON parameter map controls.TYPE_WORLD_TAB - A table of parameters that
represents world distance units. This implies a parameter dimension
of stdWorldDim.TYPE_STRING_TAB - A table of character strings
(TCHAR*).TYPE_FILENAME_TAB - A table of filenames
(TYPE_FILENAME -- see notes above).TYPE_HSV_TAB - This option is obsolete.TYPE_COLOR_CHANNEL_TAB - A table of floating point
values with an implied stdColor255Dim dimension.TYPE_TIMEVALUE_TAB - A table of integer value used
as a TimeValue -- implies stdTimeDim dimension.TYPE_RADIOBTN_INDEX_TAB - This is currently
unused.TYPE_MTL_TAB - A table of material object pointers
(see TYPE_MTL above).TYPE_TEXMAP_TAB - A table of texmap object
pointers (see TYPE_TEXMAP above).TYPE_BITMAP_TAB - A table of
TYPE_BITMAP values (see above).TYPE_INODE_TAB - A table of
TYPE_INODE values (see above).TYPE_REFTARG_TAB - A table of
TYPE_REFTARG values (see above).TYPE_MSFLOAT = 255 - This option is obsolete.TYPE_UNSPECIFIED = -255 - This
option is obsolete.