Attribute definition values have several directly accessible properties:
Get and set a descriptive name.
<def>.version
Read-only, the version of the definition.
Available in 3ds Max 2015 and higher.
Read-only, the source code for the definition.
Get and set the user-supplied def data value
Read-only, a two-element array containing the attribID for the def
Returns the source code for the attributes definition as a string.
Returns the object the custom attribute is applied to.
Returns the MAXClass associated with an attrib_def.
Available in 3ds Max 2008 and higher.
Previously available in the Avguard Extensions.
Returnsanarray of the MSCustAttrib instances of the attrib_def.
Available in 3ds Max 2008 and higher.
Previously available in the Avguard Extensions.
Adds user-supplied data to an attributes definition.
The < data > value supplied here will be stored persistently with the definition and loaded on scene loads containing attribute sets of this definition.
Returns the saved user-supplied data.
These methods return an array containing a runtime readable encoding of all of the parameter block definitions in the custAttributes definition.
The array is presented in the following form:
An array of details for one parameter block in this form:
The parameter block’s internal ID number
The reference number of the parameter block in the owning plug-in instance
An array of the keyword parameters given on the parameter block definition in the form:
Definition details for each parameter in the block in the following form:
An array containing all of the keyword parameters specified on that parameter's definition in the cust attrib definition, in the same form as the <keyword_params> above.
Here is a function that will extract ParameterBlock data from a custom attribute.
Returns an array of all the attribute definitions in the current scene.
Deletes the given attribute definiton from the current scene and the current running 3ds Max session. There must be no objects in the scene containing custom attributes added using this definition.
Access to Custom Attributes Virtual Array