help using cmds.exportEdits

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I have been trying for a while to create an export buttons without succed. I would like some help on using the cmds.exportEdits and its flags.
At this moment what I have is this;
cmds.exportEdits(publish_path, type='editMB', exportSelected=1, includeShaders=1, force=True)
Then the first flags is exporting the shot to a path that I have choosen with the variable name assigned publish_path. The type flag is making a maya file with an extension called editMB, how can I change this to just mb? I couldn't find a way within the exportEdits flags. Then I have flags to export only what I have selected, include the shaders of what is selected and force flag to overwite if this file on this path already exists.
The problem is that what I am getting is a maya file with an extension editMB, I would like an extension just mb, (ex: shotname.v001.editMB). Then when I import I have issues with namespaces, remap missing namespace (see attached screen capture, this might be my main issue), if I skip this namespace remap, then I have a scene with the exported elements but they don't appear they are like hidden, I also attach the maya scene with this issue.
Any thoughts of what I am doing wrong.
Many thanks in advance.
Joan