Closed JenusL closed 3 years ago
Back in the days, that was the simpler way to support lights' enabling/disabling in IPR. But that was long ago, many enhancements have happened in Arnold around IPR support, including destroying and creating lights. As it is, a more modern way to disable a light without destroying it is probably AiNodeSetDisabled.
I tried AiNodeSetDisabled. It makes sense to use that in IPR but it doesn't work as expected when exporting to .ass. Do you think I should just skip exporting hidden lights when not in IPR?
So I tested how it works in MAXtoA and there hidden lights are not exported at all. So I'm gonna do that here as well.
Support for visible are lights were added in Arnold 5.3. In SItoA we always export all lights but set the intensity to 0 on hidden lights. This causes the light to disappear in Reflections, but it is showing up as black in Camera and Transmission. Workaround right now is to just set camera and transmission to 0 as well on hidden lights, But I still got some questions...
@sjannuz Maybe you got the answers for me?