Project_Env.bat 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @echo off
  2. REM
  3. REM Copyright (c) Contributors to the Open 3D Engine Project.
  4. REM For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. REM
  6. REM SPDX-License-Identifier: Apache-2.0 OR MIT
  7. REM
  8. REM
  9. :: Sets up local project env for AtomTressFX
  10. :: Store current dir
  11. %~d0
  12. cd %~dp0
  13. PUSHD %~dp0
  14. :: Put you project env vars and overrides here
  15. :: chanhe the relative path up to dev
  16. set DEV_REL_PATH=../..
  17. set ABS_PATH=%~dp0
  18. CD /D ..
  19. set LY_PROJECT_PATH=%CD%
  20. for %%a in (%CD%) do set LY_PROJECT=%%~na
  21. echo.
  22. echo _____________________________________________________________________
  23. echo.
  24. echo ~ %LY_PROJECT% Project Environment ...
  25. echo _____________________________________________________________________
  26. echo.
  27. :: for this tool environment and it's assets this Gem is the Maya project
  28. echo LY_PROJECT = %LY_PROJECT%
  29. :: this Gem is the Maya project path
  30. echo LY_PROJECT_PATH = %LY_PROJECT_PATH%
  31. :: Change to root Lumberyard dev dir
  32. CD /D %LY_PROJECT_PATH%\%DEV_REL_PATH%
  33. set LY_DEV=%CD%
  34. echo LY_DEV = %LY_DEV%
  35. :: Override the default maya version
  36. set MAYA_VERSION=2020
  37. echo MAYA_VERSION = %MAYA_VERSION%
  38. :: now runt the DCCsi env
  39. CALL %LY_DEV%\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\Launchers\Windows\Env_Maya.bat
  40. rem :: Constant Vars (Global)
  41. rem SET LYPY_GDEBUG=0
  42. rem echo LYPY_GDEBUG = %LYPY_GDEBUG%
  43. rem SET LYPY_DEV_MODE=0
  44. rem echo LYPY_DEV_MODE = %LYPY_DEV_MODE%
  45. rem SET LYPY_DEBUGGER=WING
  46. rem echo LYPY_DEBUGGER = %LYPY_DEBUGGER%
  47. :: DCCsi Maya plugins access
  48. :: set DCCSI_MAYA_PLUG_IN_PATH=%DCCSI_SDK_MAYA_PATH%\plugins
  49. :: add plug-in path to AtomTressFX
  50. set TRESSFX_PLUG_IN_PATH=%LY_PROJECT_PATH%\Tools\Maya
  51. :: also attached to maya's built-it env var
  52. set MAYA_PLUG_IN_PATH=%TRESSFX_PLUG_IN_PATH%;%MAYA_PLUG_IN_PATH%
  53. echo MAYA_PLUG_IN_PATH = %MAYA_PLUG_IN_PATH%
  54. :: Restore original directory
  55. popd
  56. :: Change to root dir
  57. CD /D %ABS_PATH%
  58. :: if the user has set up a custom env call it
  59. IF EXIST "%~dp0User_Env.bat" CALL %~dp0User_Env.bat
  60. GOTO END_OF_FILE
  61. :: Return to starting directory
  62. POPD
  63. :END_OF_FILE