PDA

View Full Version : Save to specified location using MEL


mlefevre
04-13-2009, 01:50 PM
Hey,

How can I save the current scene to a specified location using MEL?

pseudo e.g.

string $location = "C:\myFolder";
file -save -location $location;

I've been sourcing the setProject.mel script, then running the procedure sp_setLocalWorkspaceCallback, but it creates unwanted folders/workspace.mel files.

Thanks!

claydough
04-13-2009, 02:32 PM
fer example...
location C: drive:

export all saves the current scene to a location.

file -type "mayaBinary" -exportAll "c:/trashMe.mb";

mlefevre
04-13-2009, 03:27 PM
Worked a treat, thanks :)

CGTalk Moderation
04-13-2009, 03:27 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.