Go to: Synopsis. Return value. Related. Flags. MEL examples.
listAttr [-array] [-attributeType string] [-caching] [-category string] [-changedSinceFileOpen] [-channelBox] [-connectable] [-extension] [-fromPlugin] [-fullNodeName boolean] [-hasData] [-hasNullData] [-inUse] [-keyable] [-leaf] [-locked] [-multi] [-nodeName boolean] [-output] [-ramp] [-read] [-readOnly] [-scalar] [-scalarAndArray] [-settable] [-shortNames] [-string string] [-unlocked] [-usedAsFilename] [-userDefined] [-visible] [-write]
[objects]
listAttr is undoable, NOT queryable, and NOT editable.
This command lists the attributes of a node. If no flags are specified all attributes are listed.string[] | : List of attributes matching criteria |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-array(-a)
|
|
|||
|
||||
-attributeType(-at) 2024
|
string
|
|||
|
||||
-caching(-ca)
|
|
|||
|
||||
-category(-ct)
|
string
|
|||
|
||||
-changedSinceFileOpen(-cfo)
|
|
|||
|
||||
-channelBox(-cb)
|
|
|||
|
||||
-connectable(-c)
|
|
|||
|
||||
-extension(-ex)
|
|
|||
|
||||
-fromPlugin(-fp)
|
|
|||
|
||||
-fullNodeName(-fnn) 2024
|
boolean
|
|||
|
||||
-hasData(-hd)
|
|
|||
|
||||
-hasNullData(-hnd)
|
|
|||
|
||||
-inUse(-iu)
|
|
|||
|
||||
-keyable(-k)
|
|
|||
|
||||
-leaf(-lf)
|
|
|||
|
||||
-locked(-l)
|
|
|||
|
||||
-multi(-m)
|
|
|||
|
||||
-nodeName(-nn) 2024
|
boolean
|
|||
|
||||
-output(-o)
|
|
|||
|
||||
-ramp(-ra)
|
|
|||
|
||||
-read(-r)
|
|
|||
|
||||
-readOnly(-ro)
|
|
|||
|
||||
-scalar(-s)
|
|
|||
|
||||
-scalarAndArray(-sa)
|
|
|||
|
||||
-settable(-se)
|
|
|||
|
||||
-shortNames(-sn)
|
|
|||
|
||||
-string(-st)
|
string
|
|||
|
||||
-unlocked(-u)
|
|
|||
|
||||
-usedAsFilename(-uf)
|
|
|||
|
||||
-userDefined(-ud)
|
|
|||
|
||||
-visible(-v)
|
|
|||
|
||||
-write(-w)
|
|
|||
|
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. |
listAttr -r -s; // This will list the scalar readable attributes of the // selected nodes. If more than one node is selected attributes // may be listed several times. listAttr -s -r -w -c -st centerX -st centerY; // This will list all scalar, readable, writable, and connectable // attributes whose names are "centerX" or "centerY". listAttr -r -st "center*" -ct "a*"; // This will list all readable attributes whose names match // "center*" (e.g. "centerX" or "centerpede") and who belong to // a category starting with the letter "a". listAttr -s -cfo nurbsSphere1; // This will list all scalar attributes of // nurbsSphere1 that have been changed since the // file in which nurbsSphere1 is defined has been // opened. If nurbsSphere1 comes from a referenced file, // the result will be all the attributes that have changed // since the referenced file was opened.