Go to:
Return value. Related commands. Flags. Examples.
Synopsis
attributeInfo
[-internal boolean]
[-hidden boolean]
[-multi boolean]
[-leaf boolean]
[-writable boolean]
[-bool boolean]
[-enumerated boolean]
[-and toggle]
[-short toggle]
[-userInterface toggle]
attributeInfo is
undoable, NOT queryable, and NOT editable
.
This command lists all of the attributes that are marked with certain
flags. Combinations of flags may be specified and all will be considered.
(The method of combination depends on the state of the -and and -n flags.)
Return value
[string[]]
: List of attributes matching criteria
Keywords
attributeRelated commands
addAttr, affectedNet, affects, aliasAttr, deleteAttr, getClassification, nodeType, objExists, objectType, renameAttrFlags
and, bool, enumerated, hidden, internal, leaf, multi, short, userInterface, writable
Long name (short name) | [argument types] | Properties |
---|
-internal
(-i)
| boolean |  |
|
Show the attributes that are marked as internal to the node.
Use the 'on' state to get internal attributes; the 'off' state
to get non-internal attributes.
|
|
-hidden
(-h)
| boolean |  |
|
Show the attributes that are marked as hidden.
Use the 'on' state to get hidden attributes; the 'off' state
to get non-hidden attributes.
|
|
-multi
(-m)
| boolean |  |
|
Show the attributes that are multis.
Use the 'on' state to get multi attributes; the 'off' state
to get non-multi attributes.
|
|
-leaf
(-l)
| boolean |  |
|
Show the attributes that are complex leaves (ie. that have parent attributes
and have no children themselves).
Use the 'on' state to get leaf attributes; the 'off' state
to get non-leaf attributes.
|
|
-writable
(-w)
| boolean |  |
|
Show the attributes that are writable (ie. can have input connections).
Use the 'on' state to get writable attributes; the 'off' state
to get non-writable attributes.
|
|
-bool
(-b)
| boolean |  |
|
Show the attributes that are of type boolean.
Use the 'on' state to get only boolean attributes; the 'off' state
to ignore boolean attributes.
|
|
-enumerated
(-e)
| boolean |  |
|
Show the attributes that are of type enumerated.
Use the 'on' state to get only enumerated attributes; the 'off' state
to ignore enumerated attributes.
|
|
-and
(-)
|
|  |
|
The default is to take the logical 'or' of the above conditions.
Specifying this flag switches to the logical 'and' instead.
|
|
-short
(-s)
|
|  |
|
Show the short attribute names instead of the long names.
|
|
-userInterface
(-ui)
|
|  |
|
Show the UI-friendly attribute names instead of the Maya ASCII names.
Takes precedence over the -s/-short flag if both are specified.
|
|
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
|
Examples
// Get the list of all choice node attributes
//
attributeInfo -t choice;
// Result: message input output selector
// Get the list of only hidden choice node attributes
//
attributeInfo -h on -t choice;
// Result: message
// Get the list of all boolean or enumerated transform node attributes
//
attributeInfo -b -e -t transform;
// Result: XXX
// Get the list of short names of compound or root attributes on one
// particular choice node
//
createNode choice;
// Result: choice1
attributeInfo -s choice1;
// Result: message input output selector
// Get the list of hidden internal attributes on one particular choice node
// using the UI name for the attributes (that is the one that will show up
// in the attribute editor).
//
select choice1; attributeInfo -ui -h on -i on;
// Result: