Announcement

Collapse
No announcement yet.

Vray Python Access

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

  • Vray Python Access

    Hello,

    I have been hunting round for the documentation for scripting vary in python. There are a few hints at: https://docs.chaosgroup.com/display/...+Script+Access

    However, I saw konstantin_chaos use:
    vray.SetSceneValue("/Z Depth", "depth_from_camera", 1) https://forums.chaosgroup.com/forum/...sing-in-zdepth


    So I was wondering, where do you go about finding out that kind of thing?

    Any help, would be very gratefully received!



    Ash

  • #2
    Hello, Ash,
    The following extract was recently added to the Script Access documentation page:

    Due to the way V-Ray for Rhino communicates with its UI, certain "user data" parameters are employed while the actual scene parameters are set accordingly only at render time.
    The precise names of such "user data" parameters can be found listed in exported V-Ray files:
    • for Settings - export a .vropt file
    • for Assets - export an asset of the required type as a .vrmat file
    Their parameter handlers contain isUserData="1".
    To set a parameter value in the V-Ray UI via a script, the "user data" counterpart must be used. Otherwise, the change will only affect the V-Ray scene.
    In short, the best way to see what parameter you need to adjust is to extract an example scene/asset and inspect it.
    This is, however, only half the necessary info. Right now, there are no plugin/parameter/value descriptions in our documentation. I'll discuss what can be published and post an update in this topic.
    In the meantime, you can simply ask here anything you want to know.

    Kind regards,
    Peter

    Last edited by Peter.Chaushev; 26-06-2019, 10:35 AM.
    Peter Chaushev
    V-Ray for SketchUp | V-Ray for Rhino | Product Specialist
    www.chaos.com

    Comment


    • #3
      Hi Peter,

      Thanks for that quick response. That's very helpful, and should be enough for me to achieve my initial goal (to create a range of settings/render setups as python scripts).

      The next goal is to create a script that exports a proxy of each object, or each layer as a separately named vrmesh.
      (Recently I've begun to export my Rhino models to Houdini to animate them, and the proxies are perfect for this).

      Thanks again,


      Ash

      Comment

      Working...
      X