Maya – Set maya environment file

To be able to structure mel and phyton scripts in folders we need to define the maya.env file to let maya know where to look for scripts. To add a path to custom folders where we store mel scripts we open the maya.env file and add the following:


MAYA_SCRIPT_PATH = %HOMEPATH%\Documents\maya\2011-x64\scripts\rendering;

The “%HOMEPATH%” is a System path variables which refers to “\Users\{username}” in windows 7/vista and “\Documents and Settings\{username}” on win xp.

For a reference of system path varaibles see: http://en.wikipedia.org/wiki/Environment_variable

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>