If, like me, you need to switch between different versions of MtoA, here’s a recipe for setting that up.
First, you have to install multiple versions. As you probably already know, the MtoA installer always wants to uninstall first. I take care of that by zapping the Uninstall registry entry with this command:
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\MtoA2016" /f
Then I run the MtoA installer and install in a folder with the version name, like this:
I start Maya with a batch file that creates a symbolic link named “C:\solidangle\mtoadeploy\2016” that links to the version of MtoA I want to use:
rmdir C:\solidangle\mtoadeploy\2016 mklink /D C:\solidangle\mtoadeploy\2016 C:\solidangle\mtoadeploy\2016-184.108.40.206 rem mklink /D C:\solidangle\mtoadeploy\2016 C:\solidangle\mtoadeploy\2016-220.127.116.11 set RLM_DEBUG=arnold start "" "C:\Program Files\Autodesk\Maya2016\bin\maya.exe" %* -log %TEMP%\maya.log
My batch file also adds the location of my custom mtoa.mod to MAYA_MODULE_PATH. My custom mtoa.mod points to “C:\solidangle\mtoadeploy\2016”, and handles all versions of Maya:
+ MAYAVERSION:2016 mtoa any C:\solidangle\mtoadeploy\2016 PATH +:= bin + MAYAVERSION:2015 mtoa any C:\solidangle\mtoadeploy\2015 PATH +:= bin + MAYAVERSION:2014 mtoa any C:\solidangle\mtoadeploy\2014 PATH +:= bin + MAYAVERSION:2013 mtoa any C:\solidangle\mtoadeploy\2013 PATH +:= bin