Notifications
Clear all
[Closed] Count hidden lights maxscript
May 27, 2015 10:58 am
In a UI I’m using the toggle to hide all lights and Cameras…
max hide light toggle
and...
max hide camera toggle
What I want to do is when a new scene is load detect if that is checked or not. I did try a quick select.
LightsHere = false
Lights_Array = #()
Lights_Array = for b in lights where Superclassof b == light collect b
if Lights_Array.count > 0 do LightsHere = true
free Lights_Array
but this will add the hidden lights to my “Lights_Array”. Anyone know how to get around this?
thanks
1 Reply
May 27, 2015 10:58 am
why is it that when you post something you find and answer right away
Lights_Array = for b in lights where Superclassof b == light and b.isHidden == true collect b
Problem solved