setting VRAY_FOR_MAYA2016_PLUGINS_x64 environment variable in Maya.env doesn't work

I’m trying to append the Yeti info to VRAY_FOR_MAYA2016_PLUGINS_x64 in Maya.env file and it’s not working. If I make this edit:

VRAY_FOR_MAYA2016_PLUGINS_x64=/Applications/Autodesk/maya2016/vray/vrayplugins:/Applications/Yeti/bin

and do getenv(“VRAY_FOR_MAYA2016_PLUGINS_x64”) in Maya, it returns this:

// Result: /Applications/Autodesk/maya2016/vray/vrayplugins //

Any idea how to make this edit work?

Which OS is this?

Best regards,
Vlado

Os x 10.11.2.

I don’t think that this will work on any OS, at least in my experience. The best way would be to just export all variables in a shell script and run maya from that script.

ok. Thanks

Why don’t you try the following:
1. Open up a terminal
2. $ export VRAY_FOR_MAYA2016_PLUGINS_x64=/Applications/Autodesk/maya2016/vray/vrayplugins:/Applications/Yeti/bin
3. $ open /Applications/Autodesk/maya2016/Maya.app

If it works this way, we can help you set up these environment variables automatically.

Yes, that works. That’s what I’ve been doing but we’re looking for a way to do this via GUI for customers that don’t want to use Terminal.

Well, OS X is progressively blocking all the ways we could do this, so I don’t know…

Best regards,
Vlado

Can you please check your /etc/profile and tell us if it sets the variable? It looks like Maya.env sets only these variables that are not already set by the time of starting up Maya. Thus, if you have VRAY_FOR_MAYA2016_PLUGINS_x64 defined in /etc/profile, whatever you place in Maya.env won’t make a difference.