LightMod
All lights in scene are influenced by parameters of LightMod.
If you selected some lights on scene , all lights selected change based on LightMod parameters.
Usefull with non instanced light.
Script work with vRay Light.
Features:
- Cast Shadow
- Double Sided
- Invisible
- No Decay
- SkyLight Portal
- Simple Portal
- Affect Reflections
- Length and width parameters
- Subdivs parameter
- Multiplier parameter
Thanks for your feedback
netkingZ
Attachment | Size |
---|---|
lightmod_v1.02.ms | 6.32 KB |
Comments
Thanks you @barigazy and
Thanks you @barigazy and @fajar.
...
Anyway... it is better to continue discussion about the optimization of code in the forum section. This is not right place.
Edit: toggle code correction
bga
...
This tool can be simplified much more because supports only one type of lite (VrayLight). So my suggestion is:
#1 when you want to toggle some parameters u can use
#2 Don't use "$" sign. It's better to use some variable like node, object, light, modifier, camera etc. because are predefined.
#3 To change all VRayLight Params you can use one function to control all values.
#4 If you planing to make changes on selected lights only then you can use this function to collect all unique lights from current selection ei. all copies of the first instance light
After collecting all supported unique lights everything else is a piece of cake ;)
You not need to check every parameter ei. property whether or not exists.
bga
Indeed.... But thats only the
Indeed.... But thats only the tip of it tho... Here is how to extend it a little....
In collaboration with your script.... Its in button pressed
This script work only lights
This script work only lights selected.
What specific type do you whant?
Hi, can you bring more
Hi, can you bring more options like only selection will be effected or a specific type.
Thanks for your script.
Your script needs to verify
Your script needs to verify state of castShadow, right?
tip a little
little bit info
you should correct this iteration tho .....
for an instance you could use