View Full Version : where is the active project info stored?

10 October 2010, 04:11 PM
I can't figure out where Maya stores the current project path. I have this script ready to open the project window in the desktop, and now all I need is that actual path info.

edit: nevermind. I'll just use the workspace command in Maya. Does anyone know how to send a path to open in the windows command prompt? This works in OS X but it uses the "open" command, which is an OS X thing:

$pathToOpen = `workspace -q -dir`;
system (("open ") + $pathToOpen);

10 October 2010, 05:18 AM
try this:

$pathToOpen = `workspace -q -dir`;
chdir $pathToOpen;
system("start cmd");


CGTalk Moderation
10 October 2010, 05:18 AM
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.