Announcement

Collapse
No announcement yet.

Vray frame buffer history location

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

  • Vray frame buffer history location

    I want to change the location of the vrayvfb.xml where Vray FB stores the path to the image history directory. Right now that file is traveling with my maya preferences which are on a shared location. This is one of the few files I don't want to travel between computers, instead I want an unique one on each machine.

    Is there some environment variable that controls this ?

  • #2
    There isn't such a variable, however, there is a way to force a separate path for the VFB History for each workstation by using MEL. Running the following code at Maya start (with a unique path for each workstation) should do the trick:
    Code:
    vray vfbControl -historytemppath "new/history/path";
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      I have looked at doing this but my MAYA_APP_DIR variable is pointing to a shared location, any startup script in there would still not be machine specific unless there is some other way of doing this. Maybe someone with some pipeline setup experience could chime in ?

      Comment


      • #4
        You can do it with an individual python script for each workstation, which starts Maya and loads a .mel script on start-up through mayapy.exe.

        Example python script:
        Code:
        import os
        os.environ['MAYA_SCRIPT_PATH']='path/to/script'
        os.system('"C:/Program Files/Autodesk/Maya2019/bin/maya.exe" -script scriptname.mel')
        Example .mel script:
        Code:
        loadPlugin "vrayformaya";
        vray vfbControl -historytemppath "new/history/path";
        You can create a .bat file, which runs the python script as well:
        Code:
        "C:\Program Files\Autodesk\Maya2019\bin\mayapy.exe" "path/to/python/script"
        Aleksandar Hadzhiev | chaos.com
        Chaos Support Representative | contact us

        Comment


        • #5
          Thank you, that worked. I actually ended up adding the link to the .mel script to the maya shortcut target that is in my start menu.

          Comment

          Working...
          X