maria-taher
05-09-2010, 03:09 AM
Hello ,
I design a window and two buttons .
button names are "Off Spot Lights" and " Off Point Lights".
This is my Mel Script :
window offlights;
rowColumnLayout -nc 2 ;
button -label "Off Spot Lights";
button -label "Off point Lights";
showWindow offlights;
http://dsa7.fileflyer.com/d/e963743e-8480-4d23-afee-9a822c395816/z0DR/JI4LaA6/01.png
I have some light sources in my viewport and I selected them.
http://dsa7.fileflyer.com/d/91cdd98f-bb5f-464b-b8fe-b51d7cd5ba53/z0Di/9xSzmBv/02.png
I want to write a command for these buttons .
I want to turn off "illuminates by default" parameter only for it's light type when I click on it's button.
Such as I want to turn off "illuminates by default" parameter in attribute editor only for my spot lights when I click on "Off Spot Lights" button.
Sorry for my english.
I design a window and two buttons .
button names are "Off Spot Lights" and " Off Point Lights".
This is my Mel Script :
window offlights;
rowColumnLayout -nc 2 ;
button -label "Off Spot Lights";
button -label "Off point Lights";
showWindow offlights;
http://dsa7.fileflyer.com/d/e963743e-8480-4d23-afee-9a822c395816/z0DR/JI4LaA6/01.png
I have some light sources in my viewport and I selected them.
http://dsa7.fileflyer.com/d/91cdd98f-bb5f-464b-b8fe-b51d7cd5ba53/z0Di/9xSzmBv/02.png
I want to write a command for these buttons .
I want to turn off "illuminates by default" parameter only for it's light type when I click on it's button.
Such as I want to turn off "illuminates by default" parameter in attribute editor only for my spot lights when I click on "Off Spot Lights" button.
Sorry for my english.
