Announcement

Collapse
No announcement yet.

Can't change V-Ray environment variables in Maya 2015

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't change V-Ray environment variables in Maya 2015

    I'm trying to get V-Ray set up for Yeti and everything I've tried has failed because it almost looks like V-Ray is hard-coding it's environment variables since I can create an env var in my Maya.env file that works fine but nothing works to add a path to VRAY_FOR_MAYA2015_MAIN_x64 and VRAY_FOR_MAYA2015_PLUGINS_x64. I've tried multiple lines, I've tried appending them append them to the existing one:

    export VRAY_FOR_MAYA2015_MAIN_x64="/Applications/Autodesk/maya2015/vray":"/Applications/Yeti-v1.3.19_Maya2015-darwin64/bin"

    I've tried overwriting it. I've tried exporting it for the session. I've tried changing the /etc/profile (where there is a separate entry made by the V-Ray installer) and restarting and nothing works. Everything that is output from getenv("VRAY_FOR_MAYA2015_PLUGINS_x64") is just /Applications/Autodesk/maya2015/vray/vrayplugins and nothing else. The weird thing is that OS X's terminal output shows that the environment variables are fine but it only shows the default path in Maya and so V-Ray can't find the Yeti bin.

    Has anyone on OS X successfully changed these env vars?
    Last edited by BEIGE; 20-06-2015, 07:27 PM.
    Dave Girard | CAN-CON.ca | polygonspixelsandpaint.tumblr.com

  • #2
    If worse comes to worse, you can always create a bash script that sets the environment variables and then runs Maya directly.

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      can one of your people try and set one there in Maya.env for OS X Maya 2015 and see if it works? It's just really weird to me that this isn't working at all and I've verified that this Maya.env file loads fine with other variables and I've checked that there aren't any other Maya.env files elsewhere.
      Dave Girard | CAN-CON.ca | polygonspixelsandpaint.tumblr.com

      Comment


      • #4
        Yes, will give it a try. Which particular version of Mac OS X though?

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment


        • #5
          Here's my setup for a local bash environment for Maya 2015 on Yosemite:

          export VRAY_FOR_MAYA2015_PLUGINS_x64=$VRAY_FOR_MAYA2015_P LUGINS_x64:/Users/imac-qa-test/Yeti-v1.3.19_Maya2015/bin
          export VRAY_PLUGINS_x64=$VRAY_PLUGINS_x64:/Users/imac-qa-test/Yeti-v1.3.19_Maya2015/bin
          RLM_LICENSE=port@ip

          I've also edited the pgYetiMaya.mod to point to /Users/imac-qa-test/Yeti-v1.3.19_Maya2015/bin and moved the .mod file to the maya modules folder. That way I don't have to edit MAYA_MODULE_PATH.

          Then I just run Maya from a terminal and everything works as expected.

          I've had some problems with settings the yeti env vars through the Maya.env file on some OSX versions, though.
          As for the env vars, all that is needed is this:
          - Yeti license
          - VRAY_FOR_MAYA2015_PLUGINS_x64
          - VRAY_PLUGINS_x64 (for standalone and RT)
          Last edited by yolov; 22-06-2015, 05:19 AM.
          Alex Yolov
          Product Manager
          V-Ray for Maya, Chaos Player
          www.chaos.com

          Comment


          • #6
            Actually I tried on Mavericks and Yosemite and on both the OSX wouldn't let me change the values for any pre-defined env vars, both V-Ray and non-V-Ray related.
            So my best guess would be to go with a bash script.
            Also, we don't set the environment in /etc/profile anymore on OSX - it's in different locations depending on the OSX version.
            Last edited by yolov; 22-06-2015, 06:17 AM.
            Alex Yolov
            Product Manager
            V-Ray for Maya, Chaos Player
            www.chaos.com

            Comment


            • #7
              ok - Thanks. I got it running from the Terminal but I'd like to eventually get it working from the GUI
              Dave Girard | CAN-CON.ca | polygonspixelsandpaint.tumblr.com

              Comment

              Working...
              X