Setting UpAs the class time we have is a bit tight, it would be extremelly helpful if everybody would have their computer up and running for the scripting workshop. Here is a list of what you need to to in order to achieve this. Keep in mind that this is a one time process only: once you have everything set up, you can forget all about this. Installing MayaYou need Maya2008 installed in order to do the workshop. There are versions for Macs and PCs, and they should work fine in most laptops specifications. Scripts folderYou need now to create a folder where you are going to store all your scripts. I recommend creating a folder in a place easy to find, with a simple and short name, and without spaces in its name. Mine, for example is simply "Scripts", which in my computer is located on the path D:\Users\Daniel\Documents\Scripts. See that there are no spaces in this path, which is very important for the next step. Here are some other examples of folder names: Good paths:
BAD paths:
I guess it is clear enough: simple, without spaces. And remember the path to your folder for the next steps. System VariablesMaya need to know now where is this folder which you just created. For that, there are two steps to follow, one of which is to setup the System Variables. Windows:
Mac:
OBS: the instructions above may vary a bit from computer to computer. Maya.envThe second step is to write your path on a file which maya reads everytime it starts. This file is called Maya.env, and is located on the following locations (assuming that you didn't change Maya's installation path during installation): Windows
Mac
OBS: These paths may vary a bit from computer to computer. In any case, use your operating system's search engine to find either the file itself of Maya's installation path. In case you don't find the file Maya.env in any of the locations above, you can simply create it by following the next steps. In case you found it, follow the next steps:
USER_SCRIPT_PATH = your_path; MAYA_SCRIPT_PATH = $USER_SCRIPT_PATH; PYTHONPATH = $USER_SCRIPT_PATH; Important: Make sure to capitalize the name of the Maya.env file. It should now be all set. You can make a test by following the instructions in the wiki page TestingTheSetup |
Daniel, have you found out what's the problem with mac? why the setup doesn't work for mac?