Announcement

Collapse
No announcement yet.

Setting the default folder for V-Ray (proxy meshes, bitmaps, etc.)

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

  • Setting the default folder for V-Ray (proxy meshes, bitmaps, etc.)

    Hi,
    All my assets (bitmaps, vrmesh, etc.) are stored in a specific folder of my mac, but many of my purchased proxies point to an absolute path for assets with is different from mine.
    What is the Ruby code to define the default folder path (say, "/Users/MAC_PATH_TO_MY_ASSETS") for the Vray for SketchUp plugin to automatically try to find missing assets?

    I used to type in the ruby console:
    VRay::LiveScene.active().add_search_path("/Users/MAC_PATH_TO_MY_ASSETS");
    but that does not seem to work anymore and I get an error...

    Or is there another way to set this once and for all using the UI or command line?
    Cheers,

    Thibaut

  • #2
    Hi,

    You could set an environment variable for a specific directory, where V-Ray will look for in case of any missing assets.

    In the latest update (4.10.02), environment variables can be set specifically for V-Ray for SketchUp on macOS by editing a config file located at /Applications/ChaosGroup/V-Ray/V-Ray\ for\ SketchUp/extensions/config.json. If multiple variables are added they need to be separated by commas.
    The variable is - VRAY_ASSETS_PATH - and it should look like this, for example:

    {
    "environmentVariables" : {
    "VRAY_ASSETS_PATH" : "/Users/JohnDoe/Desktop" }
    }


    Please be informed that the environment variable does not work for sub-directories!

    Comment


    • #3
      Hi Georgi,
      Thanks for the suggestion. I'll try that.
      However, it is very inconvenient that the search for assets does not traverse sub-folders, as my assets are evidently organised into several level of folders,,,

      When discussing this issue with Chaos tech support (27/03/2019) about V-Ray for SketchUp 3.6, It was confirmed to me by your team that the above SketchUp Ruby instruction would define a search path for assets, with a recursion of 4 sub-folders.

      Is there no more recursion now?
      Or does the ruby command differently from the V-Ray config file? If so, how?

      Cheers,

      Thibaut


      Comment

      Working...
      X