Go to: Synopsis. Return value. Related. Flags. MEL examples.
namespaceInfo [-currentNamespace] [-dagPath] [-listNamespace] [-listOnlyDependencyNodes] [-listOnlyNamespaces] [-parent]
namespaceInfo is undoable, NOT queryable, and NOT editable.
This command displays information about the current namespace.
A namespace is a simple grouping of objects under a given name.
Each item in a namespace can then be identified by its own name, along
with what namespace it belongs to. Namespaces can contain other
namespaces like sets, with the restriction that all namespaces
are disjoint.
Namespaces are primarily used to resolve name-clash issues in Maya,
where a new object has the same name as an existing object
(from importing a file, for example).
Using namespaces, you can have two objects with the same name, as long as
they are contained in differenct namespaces.
Note that namespaces are a simple grouping of names, so
they do not effect selection, the DAG, the Dependency Graph, or any other
aspect of Maya. All namespace names are colon-separated.
namespace
currentNamespace, dagPath, listNamespace, listOnlyDependencyNodes, listOnlyNamespaces, parent
Long name (short name) |
Argument types |
Properties |
-listNamespace(-ls)
|
|
|
|
List the contents of the current namespace.
|
|
-currentNamespace(-cur)
|
|
|
|
Display the name of the current namespace.
|
|
-parent(-p)
|
|
|
|
Display the parent of the current namespace.
|
|
-listOnlyDependencyNodes(-lod)
|
|
|
|
List all dependency nodes in the current namespace.
|
|
-listOnlyNamespaces(-lon)
|
|
|
|
List all namespaces in the current namespace.
|
|
-dagPath(-dp)
|
|
|
|
This flag modifies the '-ls/-listNamespace' and
'-lod\-listOnlyDependencyNodes flags to indicate that the names
of any dag objects returned will include as much of the dag path
as is necessary to make the names unique. If this flag is not
present, the names returned will not include any dag paths.
|
|
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.
|
// List the contents of the current namespace
//
namespaceInfo -listNamespace;
// List the parent of the current namespace
//
namespaceInfo -parent;