Create and position a DzLight light via script
oldParticleBoy
Posts: 12
Hi
I've been searching for a while for a way to create and position a light via script. But no success. Have (mistakenly) downloaded the SDK where I can see QT style methods and properties but nothing for the Script IDE (of course).
Could someone drop a snippet of code to get me started please?
Thanks
Comments
well oldParticleBoy
you might take a look at the Daz Studio HeadLight Simulator script by BlackFeather1973 it should get you started
In particular:
var distantLight = new DzDistantLight();
distantLight.setName("DistantLight01");
//TO GET THE SAME LIGHT INTENSITY AS THE DAZ HEADLIGHT
//REMOVE THE TWO SLASHES IN FRONT OF THE NEXT LINE
//distantLight.findPropertyByLabel("Intensity").setValue("0.8");
Scene.addNode(distantLight);
sceneCamera.addNodeChild(distantLight);
Thanks Chohole
It works now.