View Single Post
# 10 04-07-2003 , 07:37 PM
Subscriber
Join Date: Jan 2003
Location: Denmark
Posts: 338
Hi Jango,

oki doki... user added image

you can e.g. try this... create a light e.g. a Directional Light... and then execute the follwing code...
then you should get a window as the one in the attached picture...

hope it helps you... user added image

//-------------------------------------------------------------------
//modify color and intensity for the selected light
string $lightnameA[] = `ls -lt`;
window -title "Test";
columnLayout;
for ($lightname in $lightnameA)
{
attrColorSliderGrp -attribute ($lightname +".color");
attrFieldSliderGrp -attribute ($lightname + ".intensity")
- min -1 -max 10;
}
setParent ..;
showWindow;
//-------------------------------------------------------------------

regards

Strarup

Attached Images

------------------------------------------------
Alex V. U. Strarup

One mistake can ruin it all...