Rez package definition for MtoA
Tested with Arnold 5.3.2.1, mtoa 7.2.2.0.
python
name = "arnold_maya"
version = "7.2.2.0"
requires = [
"arnold",
"maya-2022.5"
]
def commands():
root_folder = r"C:\MTOA\maya2022"
env.PATH.prepend(fr"{root_folder}\bin")
env.PYTHONPATH.prepend(fr"{root_folder}\scripts")
env.MAYA_PLUG_IN_PATH.prepend(fr"{root_folder}\plug-ins")
env.MAYA_SCRIPT_PATH.prepend(fr"{root_folder}\scripts\mtoa\mel")
env.MAYA_CUSTOM_TEMPLATE_PATH.prepend(fr"{root_folder}\scripts\mtoa\ui\templates")
env.MAYA_RENDER_DESC_PATH.prepend(root_folder)
env.ARNOLD_PLUGIN_PATH.prepend(fr"{root_folder}\shaders")
And yes all variables need to be prepended, not just appended.