Hey all-
I am attempting to have project specific rendering presets and have looked through the posts I could find on the subject with some success. What I want is to set the preset directory to the current project/presets directory. Here is my test script to alter the environmental variables:
{
string $workspace = `workspace -q -fullName`;
string $fullPresetPath = $workspace + "/mel";
putenv "MAYA\_PRESET\_PATH" ("\"" + $fullPresetPath + "\"");
string $presetDir = `getenv "MAYA\_PRESET\_PATH"`;
print $presetDir;
}
This SEEMS to set the variable, but when I go to save a new preset it ends up in the default location. Also, the presets that I moved to that location don't show up in the presets in the render globals. I also attemped to set this variable explicitly through the Maya.env with no success. I apologize if this is a repost, but I haven't found a response that seems to really answer the question fully.
I am on OS X btw
thanks
-s