Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
attributeName [-leaf boolean] [-long] [-nice] [-short]
attributeName is NOT undoable, NOT queryable, and NOT editable.
This command takes one "node.attribute"-style specifier on the command line
and returns either the attribute's long, short, or nice name. (The "nice" name,
or UI name, is the name used to display the attribute in Maya's interface, and
may be localized when running Maya in a language other than English.)
If more than one "node.attribute" specifier is given on the command line,
only the first valid specifier is processed.
query, attribute, nice, name
attributeInfo, attributeQuery
leaf, long, nice, short
Long name (short name) |
Argument types |
Properties |
-nice(-n)
|
|
|
|
Returns names in "nice name" format like "Translate X"
|
|
-long(-l)
|
|
|
|
Returns names in "long name" format like "translateX"
|
|
-short(-s)
|
|
|
|
Returns names in "short name" format like "tx"
|
|
-leaf(-lf)
|
boolean
|
|
|
When false, shows
parent multi attributes (like "controlPoints[2].xValue"). When true,
shows only the leaf-level attribute name (like "xValue"). Default is true
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command.
|
attributeName -nice persp.tx;
// Result: Translate X //
attributeName -short persp.translateX;
// Result: tx //
attributeName -long persp.tx;
// Result: translateX //
attributeName -leaf true nurbsSphere1.controlPoints[50].xValue
// Result: X Value //
attributeName -leaf false nurbsSphere1.controlPoints[50].xValue
// Result: Control Points[50].X Value //