QUOTE(Joojaa @ 04/29/03, 12:56 AM) [snapback]146770[/snapback]
workspace. mel wich contains the directory structure settings is just sourced on project change and starup! what this essentialy means is that you can actualy put soem mel code to build codes that are initialized in that project only!
I saw this post in the scripters tips, but I can't get it to work.
I tried putting some mel code into the workspace.mel file, and it didn't seem to do anything. It should be able to execute any command, right? I tried a print statement because I thought that would be simple enough, and when it didn't print the string that I entered, I put a "sphere" command, which also didn't work.
I have this:
CODE
//Maya 7.0.1 Project Definition
workspace -ot "scene" "scenes";
workspace -fr "OBJexport" "data";
workspace -fr "OBJ" "data";
workspace -fr "particles" "particles";
workspace -rt "sourceImages" "sourceimages";
workspace -rt "textures" "textures";
workspace -rt "images" "images";
string $myCustomString = "It works";
print($myCustomString);
But when I load that project, "It works" is not spit out to the command line. Is this stuff cached? Does maya have to be restarted to make changes to the workspace.mel file? I tried that, which also didn't work...
Ultimately I want to be able to set different hotkeys and marking menus based on the current project. Is this possible?