Script Paths and the maya.env File


To add more directories to the paths Maya searches when looking for a script file, We need to modify the maya.env file. Open the maya.env file in any text editor and add the text seen in Example 5.2:

Example 5.2: Setting script paths in the maya.env file.

 MAYA_SCRIPT_PATH = path ; path ; 

with path representing the full path to the directory to be added to the script search. These changes will not take effect until a new Maya session is launched.




The MEL Companion
The MEL Companion: Maya Scripting for 3D Artists (Charles River Media Graphics)
ISBN: 1584502754
EAN: 2147483647
Year: 2003
Pages: 101

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net