Maya’s “pasted_” is history and maya root namespace.

PASTED_

In maya the copy paste feature can be really useful. The major downside however is that every node that gets pasted gets a nice:

PASTED_ prefix attached to it. Resulting in a horribly messy scene that no one ever cares to clean up… until you have to revisit the scene and have to dive into the world of pasted_ nodes trying to find the correct shader etc.

Now there is a really easy fix for it:

In your maya instalation directory there is a file called cutCopyPaste.mel (of course thanks autodesk … )

in that is a function called pasteScene()

replace that function with the following code:

This will merge all the pasted nodes directly into the scene (root namespace ) without adding any prefix or suffix. (Only when the node all ready exists in the same depth it will add a number to the end).

Root Namespace

Whenever I loaded in a referenced scene maya would create a namespace (either with an normal namespace or it would prefix the nodes with the filename and an underscore). However Autodesk has finally been nice enough to open the functionality in the UI to load a scene into the root namespace (making sure the referenced scene does not get any weird naming or namespace. Making it easier to work with)

When going to File > Create reference

The trick is not to disable namespaces on load but enabling them and selecting the : ( root )  namespace and set the following option:

Merge into selected namespace and rename …

Python reload all. Well … kind of

Do you also hate adding a

while developing a new tool.
If yes then here is the solution:

This removes all initilised modules from the memory. Even the ones that are loaded using the

method.

This means python will have to reload all modules. So put those few lines at the top of your project and you dont have to worry about reloading your modules while you are developing them. 😀

(Yes i know hacky as hell, but then again thats why we are tech artists :D)