Announcement

Collapse
No announcement yet.

Loading Vray 5 update 2.2 (for Maya 2023) from zip

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

  • Loading Vray 5 update 2.2 (for Maya 2023) from zip

    Hello, I am trying to load the most recent version of Vray in Maya 2023 from the zip. I am editing my maya.env file, I have attached a screenshot of the code.

    I can load the Vray plugin in Maya - but it crashes every time I add simple objects and try to edit attributes. It's incredibly unstable. Is anyone else having issue loading Vray from zip in Maya 2023 - or is there something wrong with my .env file?

    Thank you in advance -
    Kevin

  • #2
    At first glance, I noticed the VRAY_PLUGINS variable is missing. There's a pretty detailed explanation as to how to install from zips here. Have you checked everything?
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Thanks for your reply! The VRAY_PLUGINS variable is only necessary if you want to run Vray Standalone, I believe. Do I need standalone to load from zip? I don't think I've had to do that in previous versions of Vray/Maya

      Comment


      • #4
        Okay. I managed to reproduce it when using a Maya.env file to drive the variables. I'm not sure if this is intended - I'll check this and get back to you. Otherwise, the current setup is to set those variables in the System variables (System Properties>Environment Variables) as described in the docs page I linked in the previous post.

        EDIT: Okay, there shouldn't be any issues. I'll test some more and write back.
        Last edited by hermit.crab; 15-08-2022, 09:50 AM.
        Aleksandar Hadzhiev | chaos.com
        Chaos Support Representative | contact us

        Comment


        • #5
          There seems to be some issue with setting environment variables through Maya.env, since setting them regularly through Windows works as expected. For now, I suggest you do it this way.

          EDIT: Logged (internal bug-tracker id: VMAYA-11483).
          Last edited by hermit.crab; 16-08-2022, 05:27 AM.
          Aleksandar Hadzhiev | chaos.com
          Chaos Support Representative | contact us

          Comment


          • #6
            We found what causes the issue. Declarations of environment variables through the Maya.env file will extend existing variables, rather than overwriting them. For example, the %PYTHONPATH% part is usually written as a way to extend variables and since Maya does this already that part stays as it is and causes problems. Your Maya.env file should look like this:
            Code:
            VRAY_ZIP_ROOT=c:\vray_builds\vray_52002_maya2023
            MAYA_RENDER_DESC_PATH=%VRAY_ZIP_ROOT%\maya_vray\rendererDesc
            VRAY_FOR_MAYA2023_MAIN=%VRAY_ZIP_ROOT%\maya_vray
            VRAY_FOR_MAYA2023_PLUGINS=%VRAY_ZIP_ROOT%\maya_vray\vrayplugins
            VRAY_OSL_PATH_MAYA2023=%VRAY_ZIP_ROOT%\vray\opensl
            PATH=%VRAY_ZIP_ROOT%\maya_vray\bin\hostbin;%VRAY_ZIP_ROOT%\maya_vray\bin
            MAYA_PLUG_IN_PATH=%VRAY_ZIP_ROOT%\maya_vray\plug-ins
            MAYA_SCRIPT_PATH=%VRAY_ZIP_ROOT%\maya_vray\scripts
            MAYA_PRESET_PATH=%VRAY_ZIP_ROOT%\maya_vray\presets
            PYTHONPATH=%VRAY_ZIP_ROOT%\maya_vray\scripts
            XBMLANGPATH=%VRAY_ZIP_ROOT%\maya_vray\icons
            MAYA_CUSTOM_TEMPLATE_PATH=%VRAY_ZIP_ROOT%\maya_vray\scripts
            VRAY_AUTH_CLIENT_FILE_PATH=C:\Program Files\Common Files\ChaosGroup
            We'll fix the documentation page as well.
            Aleksandar Hadzhiev | chaos.com
            Chaos Support Representative | contact us

            Comment

            Working...
            X