To add custom attributes to objects
- Select the objects/nodes you want to add attributes to.
- In the , select .
- Type the Long name of the attribute.
- If you would like, turn on Override nice name and add a non-default nice name for the attribute.
Maya creates a nice name by default: it replaces intercapped text (testAttribute) with spaces (Test Attribute). Setting your
own nice name allows more flexibility; for example, creating a nice name for an attribute in the local language (Japanese).
- Set the option. When an attribute is keyable, you can use its value in keyframe animation, and it appears in the . You can also choose (appear in the , but non-keyable), or (Hidden).
- Select the type of value the attribute holds:
- Vector: three floating point values.
- Float: a single floating point value. Maya does not display floating point numbers in the user interface with their full precision.
Although Maya only displays numbers to a customizable number of decimal places, and the Attribute Editor always shows only
three decimal places, the true value of a float attribute is kept in memory.
- Integer: a single integer value.
- Boolean: an on/off switch.
- String: a text string.
- Enum: a list of choices.
- Click Add.
Remember that Maya adds the attribute to the selected node, not necessarily the node currently displayed in the Attribute
Editor.
To edit a custom attribute
- Select the object/node with custom attributes you want to edit.
- Select Modify > Edit Attribute.
Or, in the , select .
In attribute names, all punctuation except for the underscore (_) and the pound sign (#) are illegal characters
- Click the name of the attribute.
To delete a custom attribute
- Select the object/node with custom attributes you want to delete.
- Select Modify > Delete Attribute.
- Click the name of the attribute.
- Click .