How to find light node and change luminous and other surface properties by script

ShadowzShadowz Posts: 45

So I want to create a script that finds certain nodes that is a light source and changes their surface attributes/properties like luminious value etc. I'm a newbie with these scripting stuff but so far I only came up with this:


var lightNodes = ["IGLK1 Ceiling Light", "IGLK1 Ceiling Light (2)"];

for ( var n = 0 ; n < lightNodes.length ; n++ ) {
var item=Scene.findNodeByLabel(lightNodes[n]);
if(item)item.select(true); 

//Changes Luminance value ??

}

So if anyone can help me with this, I'd appreciate it greatly. This will save so much time for me so I don't have to go to these light sources one by one manually and change the luminance value etc.

Post edited by Shadowz on

Comments

Sign In or Register to comment.