Maya Import Strip Namespaces

Hey guys,

Is it possible with Unity to strip Maya namespaces on import, or is this something I’m going to have to work around?

Regards.

I need the same thing, to either remove namespaces on export from Maya (update of FBX plugin?) or Unity to have the option to strip them. Only way I can think to make it work is import the references in Maya and strip them manually with a renamer tool, not fun.

I can’t say that I’m especially familiar with Maya, but you might have a look at this script to move all scene nodes into the root namespace.

Barring that, is there some pressing reason you need to import objects that are currently in namespaces? I’m more used to seeing people save out their objects individually.

My work around is export as ASCII fbx, then open in wordpad and use “find/replace” function to get rid of the name spaces. Works really well. Eventually the coders will give me either a unity script or maya exporter to fix this.

Example:
My two namespaces in Maya are nice and short.
ACT for my model/skeleton
RIG for my rig file.

So when “exported sleceted” from an animation file the name space on all the mesh and bones is…
RIG:ACT:

So I just search replace RIG:ACT: with nothing and save.

Works a treat.

So working in Maya/Unity for a few days now I know that I should export with ‘centimeters’ and ‘ASCII’ when exporting meshes/animations and do the search/replace in the ACSII file.

This then comes into unity at the right scale.

My work around is export as ASCII fbx, then open in wordpad and use “find/replace” function to get rid of the name spaces. Works really well. Eventually the coders will give me either a unity script or maya exporter to fix this.

Example:
My two namespaces in Maya are nice and short.
ACT for my model/skeleton
RIG for my rig file.

So when “exported sleceted” from an animation file the name space on all the mesh and bones is…
RIG:ACT:

So I just search replace RIG:ACT: with nothing and save.

Works a treat.

So working in Maya/Unity for a few days now I know that I should export with ‘centimeters’ and ‘ASCII’ when exporting meshes/animations and do the search/replace in the ACSII file.

This then comes into unity at the right scale.

I feel like I’m missunderstanding something here, but if all you want is to get rid of namespaces, there is a namespace editor in maya. “window → general editors → namespace”. Just select your namespace there and it will remove it from all objects.

Striping the namespace is somewhat easy but very annoying to do. Most animations are referenced thus you need to break the reference and then strip the namespace. Doing this for a ton of animations is not scale able. Is there a way on import or as a unity script to strip these names?