Announcement

Collapse
No announcement yet.

Render Hidden Lights OFF - Option to Bypass Hidden by Category

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

  • Render Hidden Lights OFF - Option to Bypass Hidden by Category

    It would be great to have an option for when you have render hidden lights OFF that it will ignore/bypass them being hidden in the display category level in Max. That way you can toggle the drawing of any lights in you viewports but still have V-Ray only render the ones that are unhidden at the node/layer level. For me using lights category-level hide is always about reducing viewport clutter and never about wanting to disable the effect of the lights.

  • #2
    indeed, the .ishidden property stays false when hiding by category.

    As a temporary workaround, add the two attached scripts to the pre and post render slots, and you're set.
    Just so you know what they do without running them:
    the Pre-Render one:
    Code:
    (
        global wereLightsHidden = hideByCategory.lights --store the state in a global variable
        hideByCategory.lights = false --turn hide by category off for lights
    )
    The Post-Render one:
    Code:
    (
        if wereLightsHidden != undefined do --verify the global variable still exists
        (
            hideByCategory.lights = wereLightsHidden     --set the category hiding to what it was before rendering
        )
    )
    They should not error, regardless of mistreatment. At most, they won't do the re-hiding post render.
    Attached Files
    Last edited by ^Lele^; 26-06-2019, 07:04 PM.
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment

    Working...
    X