Tuesday, August 16, 2011
Monday, August 1, 2011
Thursday, July 28, 2011
Wednesday, July 27, 2011
koji.
Wednesday, July 20, 2011
Wednesday, July 13, 2011
Wednesday, July 6, 2011
Wednesday, June 29, 2011
Saturday, June 25, 2011
Wednesday, June 22, 2011
Monday, June 20, 2011
gamey stuff.
Tuesday, May 31, 2011
lights camera....scripts!
{
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.












































