Hi Steve,
thanks for the reply!
That points me in the right direction.
I´ve come to remember that I asked a similar question before...
There is some trickery that involves creating seperate (desktop)
links for each desired project setup,
pointing to the according prefs.
I´ll see if I can dig it up.
For step 1, your suggestion is great to test this out manually.
Cheers,
tim
Sometimes it is cumbersome to have to define the different environment variables required for MtoA, especially if you have more than one version of Maya that you often work with.
There are several options to simplify this procedure. You can create a batch file with the following form, assuming a Windows installation and that the file is located in the root of the Maya installation:
SET PATH = %PATH%;C:\solidAngle\mtoadeploy\2012\lib; SET ARNOLD_PLUGIN_PATH = C:\solidAngle\mtoadeploy\2012\shaders SET MAYA_MODULE_PATH = C:\solidAngle\mtoadeploy\2012 SET MTOA_EXTENSIONS_PATH = C:\solidAngle\mtoadeploy\2012\extensions start \bin\maya.exe exit
Maya also has an special .env file. Using the Maya.env file is recommended so that you don’t clutter the standard environment settings with Maya-specific variables. Search for "Setting environment variables using Maya.env" in the Maya documentation for more information on where the .env file is located and how to fill it. The result will be very similar to the previous batch file, assuming a Windows installation:
ARNOLD_PLUGIN_PATH = C:\solidangle\mtoadeploy\2012\shaders MAYA_MODULE_PATH = C:\solidangle\mtoadeploy\2012 MAYA_RENDER_DESC_PATH = C:\solidangle\mtoadeploy\2012 PATH = %PATH%;C:\solidangle\mtoadeploy\2012\bin
Oh guys,
after following Stephen´s links and googling around, I actually
found my own original question from 2015
and a beautiful answer from Carlos Rico Adega to go with it.
For my needs, all I want to do is set up Prefs per Project, e.g.
have individual "MAYA_APP_DIR" locations.
I paste his answer for your convenience:
----------------------- Re: Starting different Maya Prefs from the same user? Using a shortcut?-------------------------
Here´s a dummy walkthrough for win10 and Maya 2018:
- Start Notepad
- paste this in:
set MAYA_APP_DIR=
start "CustomPrefs2018" C:\Program
Files\Autodesk\Maya2018\bin\maya.exe
and save the file as CustomPrefs2018.cmd
---
Finding your Maya Preferences Folder, if you do not set the
MAYA_APP_DIR variable, the default values for Windows are:
C:\Users\<username>\Documents\Maya\2018
(see
http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=GUID-228CCA33-4AFE-4380-8C3D-18D23F7EAC72
---
Make a new empty folder in
C:\Users\<username>\Documents\Maya\ - named CustomPrefs2018,
e.g.:
C:\Users\<username>\Documents\Maya\CustomPrefs2018
---
- Paste this new path in your CustomPrefs2018.cmd here:
set
MAYA_APP_DIR=C:\Users\<username>\Documents\Maya\CustomPrefs2018
--
Your CustomPrefs.cmd file should now look like this:
set
MAYA_APP_DIR=C:\Users\<username>\Documents\Maya\CustomPrefs2018
start "CustomPrefs2018" C:\Program
Files\Autodesk\Maya2018\bin\maya.exe
Where <username> is your current user and "CustomPrefs2018"
is the title you´ve given Maya to start,
just for your convenience. At a later date, you could decide to
customize even paths more....
---
Save and Close CustomPrefs2018.cmd.
--
Now Double Click on CustomPrefs2018.cmd
--
Maya 2018 should start now using your customized MAYA_APP_DIR
settings and create new Default Preferences in:
C:\Users\<username>\Documents\Maya\CustomPrefs2018\2018
-- --------------
A for dummies way of testing if it worked is as follows:
From inside this new Maya session, open your Preferences and
Script Editor.
Change something like the Framerate or Time Slider settings and
save the new settings
Check the Script Editor for the paths it saved the preferences to,
it should say something like:
// Saving preferences to :
C:\Users\<username>\Documents\Maya\CustomPrefs2018\2018\prefs\userPrefs.mel
//
---------------------
Configure and save your settings to your hearts content to fit
that specific project.
---------------------
Enjoy,
tim
Hi Carlos,
it took me three years to actually set it up finally but your help
is very much appreciated to begin with!
Cheers,
tim