Announcement

Collapse
No announcement yet.

frame buffer scripting support for changing background

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

  • frame buffer scripting support for changing background

    This is really minor, but probably easy to implement. Just wondering when we'll be able to change the background image of a render in the frame buffer via scripting? We used to be able to do that with the old frame buffer

  • #2
    You still can, but it's a bit different. This is a sample script to create a Background layer:
    Code:
    vray vfbControl -createLayer "chaos.ref.external" 1
    An ID number will be returned for that layer. To change the background layer's image:
    Code:
    vray vfbControl -layer <id> image "path"
    If the background layer is already created you would need to get its id first. With this:
    Code:
    vray vfbControl -findLayersByClass "chaos.ref.external"
    You can list all available classes like so:
    Code:
    vray vfbControl -listLayerClasses
    Read more about controlling the VFB layers programmatically here.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment

    Working...
    X