{
string $myLights[] = `ls -lt`;
// compartment for all the lights
global string $eachLight;
for ($i = 0; $i
{
$eachLight = $myLights[$i];
// string $eachLight = `getAttr $eachLight`;
print ($eachLight+ "\n");
//what kind of light is each one?
string $typeOfLight = `objectType $eachLight`;
//rename the lights so we can have the appropriate icon
if ($typeOfLight == "spotLight")
$iconPic = "spotlight";
if ($typeOfLight == "directionalLight")
$iconPic = "directionallight";
if ($typeOfLight == "pointLight")
$iconPic = "pointlight";
if ($typeOfLight == "areaLight")
$iconPic = "arealight";
if ($typeOfLight == "volumeLight")
$iconPic = "volumelight";
if(`window -q -exists "lightsInScene"`)
deleteUI -window "lightsInScene";
string $window = `window -title "Lights In Scene" "lightsInScene"`;
columnLayout -adjustableColumn true;
rowLayout -numberOfColumns 10;
iconTextCheckBox -style "iconAndTextVertical"
- image1 ($iconPic +".png");
text -label $typeOfLight;
$newName = `nameField -object $eachLight`;;
print ( "bambi" + $newName);
$intesityOfLight = `attrFieldSliderGrp - attribute ($eachLight +".intensity") -min 0 -max 10 -label "Intensity"`;
string $colorForLights = `attrColorSliderGrp -attribute($eachLight +".color") `;
//string $intesityForLights = `floatSlider
checkBox -label "Emit Diffuse" ;
//checkBox -label "Illuminates by Default";
checkBox -label "Emit Spec";
button -label "attEditor";
showWindow;
};
}
Still early.. but making a light tool so you can see every light in the scene and tweak all of them at once. Big ups to Diana Zeng on the problems with lights to this one. Have to tool to download sometime this week.






