Page 1 of 1

Little script to activate just selected Daylight

Posted: Wed Aug 17, 2016 1:25 pm
by HHbomb
Hi,
If someone is interrested, here is a little script to activate just the selected daylight.
Sometimes I have a lot of daylight in my scene , and it is a pain to disable a daylight, enable an another one,....
Select the desired daylight and run the script.
As the daylights are traited by name, you need to keep "OctaneDayLight_" at the beginning of the names, or change string in the script.
-------------------------
SEL = $
NAM = $.name
for a in Lights where matchPattern a.name pattern:("OctaneDayLight_" +"*") do
( a.enabled = off )
SEL.enabled = on
----------------------------