Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- REM
- REM Valve Source SDK - runmaya.bat
- REM
- REM This is an example .bat file that can be used to launch Maya with
- REM appropriate paths set. Call with the version of Maya to run.
- REM
- REM e.g. runmaya.bat 2012
- REM
- REM It relies on the environment variable VPROJECT being set by the SDK Launcher.
- REM
- REM NOTE: It also assumes Maya is installed in the default location
- REM Adjust as required
- REM
- REM %VTOOLS%/maya/scripts should be in your MAYA_SCRIPT_PATH
- REM %VTOOLS%/maya/icons should be in your XBMLANGPATH
- REM %VTOOLS%/maya/<MAYAVER>/plug-ins should be in your MAYA_PLUG_IN_PATH
- REM
- REM Where <MAYAVER> is the appropriate version of Maya you are running
- SET MAYAVER=2012
- REM
- REM vsMaster.mll looks for other Valve DLLs relative to the directory specified by %VPROJECT%.
- REM Specifically, it looks in %VPROJECT%/../bin for other Valve DLLs. Valve uses an internal
- REM runtime linker and normally it looks relative to the path of the EXE running to find Valve DLLs.
- REM In the case of Maya, maya.exe is running from an arbitrary unrelated location so
- REM %VPROJECT% is used to locate the DLLs in the manner specified.
- REM
- IF NOT EXIST "%VPROJECT%" GOTO ERROR_NO_VPROJECT
- REM
- REM Workaround for maya installed in (x86) directory.
- REM
- IF EXIST "%ProgramFiles(x86)%" GOTO x86
- SET PATH=E:/Programs/Autodesk/Maya%MAYAVER%/bin;%VGAME%/bin;%PATH%
- GOTO END
- :x86
- SET PATH=E:/Programs/Autodesk/Maya%MAYAVER%/bin;%VGAME%/bin;%PATH%
- :END
- set MAYA_SCRIPT_PATH=%VTOOLS%/maya/scripts;%VTOOLS%/maya/scripts/valvesource;%VTOOLS%/maya/scripts/vstAttrPaint;%MAYA_SCRIPT_PATH%
- set XBMLANGPATH=%VTOOLS%/maya/icons;%XBMLANGPATH%
- set MAYA_PLUG_IN_PATH=%VTOOLS%/maya/%MAYAVER%/plug-ins;%MAYA_PLUG_IN_PATH%
- maya
- goto END
- :ERROR_NO_VPROJECT
- echo ERROR! VPROJECT directory "%VPROJECT%" doesn't exist
- goto END
- :END
Advertisement
Add Comment
Please, Sign In to add comment