Is there a mel command that saves what workspace is currently active?

Is there a mel command that saves what workspace is currently active?

malcolm_341
Collaborator Collaborator
782 Views
1 Reply
Message 1 of 2

Is there a mel command that saves what workspace is currently active?

malcolm_341
Collaborator
Collaborator

Hey, I'm working on a script which saves some preferences in case of a crash, I've noticed after I crash Maya my current workspace is not remembered. Is there a command I can run to save my active workspace selection so I can then crash Maya and it will remember what workspace I had selected?

Accepted solutions (1)
783 Views
1 Reply
Reply (1)
Message 2 of 2

malcolm_341
Collaborator
Collaborator
Accepted solution

I found the solution after much trial and error, unexpectedly it's this

 

//Save current work space so it loads next time Maya starts
workspaceLayoutManager -save;