I would like to know how I can pass the environment variables of the user when sending to deadline from Maya.
At the studio, Maya is launched with a batch file to set temporary environment variables according to the project. (plugin version, licenses ect.)
Here a short version of the .bat
SET SHARED_MAYA_DIR=B:\\ressources\\sharedMaya REM == Color management and ACES SET MAYA_COLOR_MANAGEMENT_POLICY_FILE=%SHARED_MAYA_DIR%\colorManagement\cm.xml SET OCIO=B:\ressources\networkInstall\openColorIo\aces_1.0.3\config.ocio REM == Modules and Arnold SET MAYA_MODULE_PATH=%MAYA_MODULE_PATH%;%SHARED_MAYA_DIR%\modules\basic;B:\ressources\networkInstall\maya2020 REM == Other Arnold variables SET MAYA_RENDER_DESC_PATH=B:\ressources\networkInstall\maya2020 REM == Start maya and launch startupSettings (FPS, Scale unit, ect...) start C:\"Program Files"\Autodesk\Maya2020\bin\maya.exe -command "python(\"import startupSettings\"); python (\"startupSettings.run()\");" %*
Now, I would like the user to be able to pass this variables to deadline so the worker use the correct plugin versions.
I read that may be to modify the SubmitToMayaDeadline.mel (or maybe the MayaSubmission.py ?).
If someone could point me in the right direction, it would be greatly appreciated.
I see the question has already been asked . But the links provided as solution are now 404 :’(
deadline 10.1, maya 2020, Arnold and Windows 10