
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a MEL command to open my current Maya scene again without saving? I'm using Maya 2016, and I'm fairly new at scripting in general.
Before exporting an animation for my game engine, I need to delete the namespace of my referenced character. However, I can't save the animation scene without the namespaces, otherwise the animation will be lost forever (but the namespace will be back). It means that each time I want to export, I need to:
1. Save my scene;
2. Delete namespaces (merge with root);
3. Select my meshes and bones;
4. Export my selection;
5. Close my scene without saving;
6. Open same scene again.
For now, I found a way to do step 2-4:
namespace -mergeNamespaceWithRoot -removeNamespace "model"; SelectAllPolygonGeometry; select -add Root ; ExportSelection
I don't know why, but if I add "SaveScene" at the beginning, it will disregard the Namespace and ExportSelection commands. Also, I didn't find any MEL command that would "open scene", choose the current one automatically, then choose "Don't Save".
If possible, I'd like to create a button to do all of these steps in one click. The most important thing to me is to find a way to execute step 5 and 6.
Thank you!
Solved! Go to Solution.