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.