Little script to activate just selected Daylight

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
HHbomb
Licensed Customer
Posts: 1378
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

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
----------------------------
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
Post Reply

Return to “Autodesk 3Ds Max”