1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- @echo off
- REM
- REM Copyright (c) Contributors to the Open 3D Engine Project.
- REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
- REM
- REM SPDX-License-Identifier: Apache-2.0 OR MIT
- REM
- REM
- :: Launches maya with a bunch of local hooks for AtomTressFX (Hair) plugins
- :: ToDo: move all of this to a .json data driven boostrapping system
- @echo off
- %~d0
- cd %~dp0
- PUSHD %~dp0
- echo ________________________________
- echo ~ calling PROJ_Env.bat
- :: Keep changes local
- SETLOCAL enableDelayedExpansion
- :: PY version Major
- set DCCSI_PY_VERSION_MAJOR=2
- echo DCCSI_PY_VERSION_MAJOR = %DCCSI_PY_VERSION_MAJOR%
- :: PY version Major
- set DCCSI_PY_VERSION_MINOR=7
- echo DCCSI_PY_VERSION_MINOR = %DCCSI_PY_VERSION_MINOR%
- :: Maya Version
- set MAYA_VERSION=2020
- echo MAYA_VERSION = %MAYA_VERSION%
- :: if a local customEnv.bat exists, run it
- IF EXIST "%~dp0Project_Env.bat" CALL %~dp0Project_Env.bat
- echo ________________________________
- echo Launching Maya %MAYA_VERSION% for Lumberyard...
- :::: Set Maya native project acess to this project
- set MAYA_PROJECT=%LY_PROJECT_PATH%
- echo MAYA_PROJECT = %LY_PROJECT_PATH%
- :: DX11 Viewport
- Set MAYA_VP2_DEVICE_OVERRIDE = VirtualDeviceDx11
- :: add plug-in path to AtomTressFX
- set TRESSFX_PLUG_IN_PATH=%LY_DEV%\Gems\AtomTressFX\Tools\Maya
- :: also attached to maya's built-it env var
- set MAYA_PLUG_IN_PATH=%TRESSFX_PLUG_IN_PATH%;%MAYA_PLUG_IN_PATH%
- echo MAYA_PLUG_IN_PATH = %MAYA_PLUG_IN_PATH%
- :: configure local xgen data so we can store it with test data
- :: https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2020/ENU/Maya-CharEffEnvBuild/files/GUID-6ED517C7-7346-4A6E-A9CF-37D2B8511C36-htm.html
- Set XGEN_CONFIG_PATH=%LY_PROJECT_PATH%\AssetData
- echo XGEN_CONFIG_PATH = %XGEN_CONFIG_PATH%
- :: Default to the right version of Maya if we can detect it... and launch
- IF EXIST "%MAYA_LOCATION%\bin\Maya.exe" (
- start "" "%MAYA_LOCATION%\bin\Maya.exe" %*
- ) ELSE (
- Where maya.exe 2> NUL
- IF ERRORLEVEL 1 (
- echo Maya.exe could not be found
- pause
- ) ELSE (
- start "" Maya.exe %*
- )
- )
- :: Return to starting directory
- POPD
- :END_OF_FILE
- exit /b 0
|