According to the documentation - https://download.autodesk.com/us/maya/2011help/CommandsPython/file.html#flagswapNamespace
..The command should look something like this,
cmds.file('E:\Stuff\ASSET.FBX', i=True, swapNamespace=['ASSET','Taco'])
It successfully imports ASSET.FBX as ASSET to my Outliner. But I'm always given this error:
Error: The -swapNamespace flag could not find the specified namespace to swap to: "Taco"
Does anyone see where I'm making my mistake? Or perhaps have a working example? I need this object renamed. Thanks you.
This error only means that there isn't elements in you set with namespace
Taco.If you goal is only to import your
ASSET.FBXfile with namespaceASSETthen simply use thenamespaceparameter: