Create, edit, or delete custom attributes
 
 
 

To add custom attributes to objects

  1. Select the objects/nodes you want to add attributes to.
  2. In the Attribute Editor, select Attributes > Add Attributes.
  3. Type the Long name of the attribute.
  4. 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).

  5. Set the Keyable option. When an attribute is keyable, you can use its value in keyframe animation, and it appears in the Channel Box. You can also choose Displayable (appear in the Channel Box, but non-keyable), or Neither (Hidden).
  6. 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.
  7. 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

  1. Select the object/node with custom attributes you want to edit.
  2. Select Modify > Edit Attribute.

    Or, in the Attribute Editor, select Attributes > Edit Attributes.

    In attribute names, all punctuation except for the underscore (_) and the pound sign (#) are illegal characters

  3. Click the name of the attribute.

To delete a custom attribute

  1. Select the object/node with custom attributes you want to delete.
  2. Select Modify > Delete Attribute.
  3. Click the name of the attribute.
  4. Click Delete.