Announcement

Collapse
No announcement yet.

Accessing VFB from python

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

  • Accessing VFB from python

    Hi, I'm writing a plugin that needs to bake some maps as part of a greater routine. I'm aware of the V-ray baker tool that is currently in beta, but as I need all sorts of interactions and custom parameters to be changed I'm developing my own tool.
    The question is: is it possible to gain access to the frame buffer via python code? I'd want to check on render progress and also be able to close the VFB window when it finishes rendering.

    thanks!


  • #2
    Check this topic https://forums.chaosgroup.com/forum/...nslate-support
    Please, check the WARNING at that post as well as the links to the documentation of the V-Ray Application SDK Python binding.

    You could access the renderer like that:
    Code:
    import vfh
    r = vfh.getVRay(hou.node('/path/to/rop/node'))
    For instance, closing VFB will look like "r.vfb.shown = False".

    Not sure there is a direct access to progress, but you may check for renderer status.
    Last edited by bdancer; 17-03-2020, 01:36 PM.
    V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
    andrei.izrantcev@chaos.com
    Support Request

    Comment


    • #3
      ah that's wonderful, thank you very much!

      Comment

      Working...
      X