If type names are requested, using the showType flag, they
will be interleaved with object names so the result will be
pairs of <object, type> values.
Internal nodes (for example itemFilter nodes) are typically filtered
so that only scene objects are returned. However, using a wildcard
will cause all the nodes matching the wild card to show up, including
internal nodes. For example, ls * will list all
nodes whether internal or not.
The command may also be passed node UUIDs instead of names/paths, and
can return UUIDs instead of names via the -uuid flag.
| Long name (short name) |
Argument types |
Properties |
|
-absoluteName(-an)
|
|
|
|
This flag can be used in conjunction with the showNamespace flag to specify
that the namespace(s) returned by the command be in absolute namespace format.
The absolute name of the namespace is a full namespace path, starting from the root namespace ":"
and including all parent namespaces. For example ":ns:ball" is an absolute namespace
name while "ns:ball" is not.
The absolute namespace name is invariant and is not affected by the current namespace or
relative namespace modes.
|
|
-allPaths(-ap)
|
|
|
|
List all paths to nodes in DAG. This flag only works
if -dag is also specified or if an object name is
supplied.
|
|
-assemblies(-as)
|
|
|
|
List top level transform Dag objects
|
|
-cameras(-ca)
|
|
|
|
|
-containerType(-ct)
|
string
|

|
|
List containers with the specified user-defined type.
This flag cannot be used in conjunction with the type or exactType flag.
|
|
-containers(-con)
|
|
|
|
List containers. Includes both standard containers as well as other types of
containers such as dagContainers.
|
|
-dagObjects(-dag)
|
|
|
|
List Dag objects of any type. If object name arguments are
passed to the command then this flag will list all Dag objects
below the specified object(s).
|
|
-defaultNodes(-dn)
|
|
|
|
Returns default nodes.
A default node is one that Maya creates automatically and does not get
saved out with the scene, although some of its attribute values may.
|
|
-dependencyNodes(-dep)
|
|
|
|
List dependency nodes. (including Dag objects)
|
|
-exactType(-et)
|
string
|

|
|
List all objects of the specified type, but not objects that are
descendents of that type. This flag can appear
multiple times on the command line. Note: the type passed to
this flag is the same type name returned from the showType
flag.
This flag cannot be used in conjunction with the type or excludeType flag.
|
|
-excludeType(-ext)
|
string
|

|
|
List all objects that are not of the specified type.
This flag can appear multiple times on the command line. Note: the type passed to
this flag is the same type name returned from the showType flag.
This flag cannot be used in conjunction with the type or exactType flag.
|
|
-flatten(-fl)
|
|
|
|
Flattens the returned list of objects so that each component
is identified individually.
|
|
-geometry(-g)
|
|
|
|
List geometric Dag objects.
|
|
-ghost(-gh)
|
|
|
|
|
-head(-hd)
|
int
|
|
|
This flag specifies the maximum number of elements to be
returned from the beginning of the list of items.
Note: each type flag will return at most this many items so
if multiple type flags are specified then the number of items
returned can be greater than this amount.
|
|
-hilite(-hl)
|
|
|
|
List objects that are currently hilited for component selection.
|
|
-intermediateObjects(-io)
|
|
|
|
List only intermediate dag nodes.
|
|
-invisible(-iv)
|
|
|
|
List only invisible dag nodes.
|
|
-leaf(-lf)
|
|
|
|
List all leaf nodes in Dag. This flag is a modifier and must
be used in conjunction with the -dag flag.
|
|
-lights(-lt)
|
|
|
|
|
-live(-lv)
|
|
|
|
List objects that are currently live.
|
|
-lockedNodes(-ln)
|
|
|
|
Returns locked nodes, which cannot be deleted or renamed. However, their status may change.
|
|
-long(-l)
|
|
|
|
Return full path names for Dag objects. By default the
shortest unique name is returned.
|
|
-materials(-mat)
|
|
|
|
List materials or shading groups.
|
|
-modified(-mod)
|
|
|
|
When this flag is set, only nodes modified since the last save will be returned.
|
|
-noIntermediate(-ni)
|
|
|
|
List only non intermediate dag nodes.
|
|
-nodeTypes(-nt)
|
|
|
|
Lists all registered node types.
|
|
-objectsOnly(-o)
|
|
|
|
When this flag is set only object names will be returned and
components/attributes will be ignored.
|
|
-orderedSelection(-os)
|
|
|
|
List objects and components that are currently selected in their order of selection. This flag depends
on the value of the -tso/trackSelectionOrder flag of the selectPref command. If that flag is not
enabled than this flag will return the same thing as the -sl/selection flag would.
|
|
-partitions(-pr)
|
|
|
|
|
-persistentNodes(-pn)
|
|
|
|
Returns persistent nodes, which are nodes that stay in the Maya session after a file > new.
These are a special class of default nodes that do not get reset on file > new.
Ex: itemFilter and selectionListOperator nodes.
|
|
-planes(-pl)
|
|
|
|
List construction plane shapes.
|
|
-preSelectHilite(-psh)
|
|
|
|
List components that are currently hilited for pre-selection.
|
|
-readOnly(-ro)
|
|
|
|
Returns referenced nodes. Referenced nodes are read only.
NOTE: Obsolete. Please use "-referencedNodes".
|
|
-recursive(-r)
|
boolean
|
|
|
When set to true, this command will look for name matches
in all namespaces. When set to false, this command will only look
for matches in namespaces that are requested (e.g. by specifying
a name containing the ':'... "ns1:pSphere1").
|
|
-referencedNodes(-rn)
|
|
|
|
Returns referenced nodes. Referenced nodes are read only.
|
|
-references(-rf)
|
|
|
|
List references associated with files. Excludes special reference
nodes such as the sharedReferenceNode and unknown reference nodes.
|
|
-renderGlobals(-rg)
|
|
|
|
|
-renderQualities(-rq)
|
|
|
|
List named render qualities.
|
|
-renderResolutions(-rr)
|
|
|
|
|
-renderSetups(-rs)
|
|
|
|
Alias for -renderGlobals.
|
|
-selection(-sl)
|
|
|
|
List objects that are currently selected.
|
|
-sets(-set)
|
|
|
|
|
-shapes(-s)
|
|
|
|
|
-shortNames(-sn)
|
|
|
|
Return short attribute names. By default long attribute names
are returned.
|
|
-showNamespace(-sns)
|
|
|
|
Show the namespace of each object after the object name.
This flag cannot be used in conjunction with the showType flag.
|
|
-showType(-st)
|
|
|
|
List the type of each object after its name.
|
|
-tail(-tl)
|
int
|
|
|
This flag specifies the maximum number of elements to be
returned from the end of the list of items.
Note: each type flag will return at most this many items so
if multiple type flags are specified then the number of items
returned can be greater than this amount
|
|
-templated(-tm)
|
|
|
|
List only templated dag nodes.
|
|
-textures(-tex)
|
|
|
|
|
-transforms(-tr)
|
|
|
|
|
-type(-typ)
|
string
|

|
|
List all objects of the specified type. This flag can appear
multiple times on the command line. Note: the type passed to
this flag is the same type name returned from the showType
flag. Note: some selection items in Maya do not have a specific
object/data type associated with them and will return "untyped"
when listed with this flag.
This flag cannot be used in conjunction with the exactType or excludeType flag.
|
|
-undeletable(-ud)
|
|
|
|
Returns nodes that cannot be deleted (which includes locked nodes). These nodes also cannot be renamed.
|
|
-untemplated(-ut)
|
|
|
|
List only un-templated dag nodes.
|
|
-uuid(-uid)
|
|
|
|
Return node UUIDs instead of names.
Note that there are no "UUID paths" - combining this
flag with e.g. the -long flag will not result in a path
formed of node UUIDs.
|
|
-visible(-v)
|
|
|
|
List only visible dag nodes.
|
|