Announcement

Collapse
No announcement yet.

Saving only RGB channel from VFB with Python

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

  • Saving only RGB channel from VFB with Python

    I have a python script that after doing certain operations issues a render command and saves the image to disk. The code lines to do that are:

    Code:
    import rhinoscriptsyntax as rs
    ... code
    ... more code
    rs.Command("!_Render", echo=False)
    rs.Command("-_SaveRenderWindowAs " + filename, echo=False)
    The script works fine but it saves all the active channels currently selected in my VFB vray options tab as separate files.
    I'd like to save only the RGB channel but I don't want to have to turn the channels off every time because I use them mostly, not so much for compositing but for checking sample rate optimization and noise caused by lights and/or materials.
    Is there a different command other than -_SaveRenderWindowAs to save to disk only the RGB channel without having to disable the selected channels first?
    www.marinevisuals.com
    3D Visualization for the Marine Industry

  • #2
    No, I don't believe we have any other method exposed, unfortunately.
    Best regards,
    Joe Bacigalupa
    Developer

    Chaos Group

    Comment


    • #3
      For future record there is an answer on the Rhino forum:
      http://discourse.mcneel.com/t/savere...question/30321
      Best regards,
      Matt Newberg
      Software Developer

      Chaos Group

      Comment


      • #4
        Thanks Matt.
        www.marinevisuals.com
        3D Visualization for the Marine Industry

        Comment

        Working...
        X