Create namespaces
 
 
 

You can create namespaces in the Namespace Editor as well as when you reference or import a file into your scene. When you create a namespace during file referencing or importing, the file name is used as the namespace by default.

After you create a namespace you can edit it using the Namespace Editor. See Edit namespaces.

Create namespaces using the Namespace Editor

To create a namespace using the Namespace Editor

  1. Open the Namespace Editor by selecting Window > General Editors > Namespace Editor.

    The Namespace Editor appears.

  2. Click New.

    Maya creates a new namespace.

  3. To rename the new namespace, double-click it.

    The Rename Namespace window appears.

  4. In the Rename Namespace window type a new name, and then click OK.

Create namespaces during file referencing or importing

When you are creating a file reference or importing a file, you can create the namespace used by the referenced and imported objects.

NoteThe Reference Options window and the Import Options window have the same settings for creating namespaces. This procedure can be used for creating namespace when importing files by referring to the Import Options window rather than the Reference Options windows.

To create a namespace during file referencing or importing

  1. In the parent file, select File > Create Reference > .

    The Reference Options window appears.

  2. In the Namespace Options, turn on Use namespaces.

    By default, the new namespace uses the filename to create unique names for the referenced object's namespace.

  3. If you want to specify a unique name or text string rather than the filename for the namespace, select New Namespace String , and then type your string in the field that appears.
  4. Click Reference.

    A File Browser appears.

  5. Navigate to the file you want to reference and then click Reference.

    The file is referenced into the parent scene. If you open the Outliner, you can see that the object names for the referenced objects are all prefixed with either the referenced file's name or your namespace text string.

You can edit namespaces using the Namespace Editor, Reference Editor or by using MEL commands. For more information see Namespace Editor Overview, Edit namespaces, Reference Editor overview, and Work with file references.

Related topics