Archive for May 16th, 2008
MEL: Setting the color for multiple lights
Friday, May 16th, 2008Here’s a snippet if you want to set the RGB color for multiple lights at once.
colorEditor;
if (`colorEditor -query -result`) {
string $lights[] = `ls -sl -dag -type light`;
float $values[];
$values = `colorEditor -query -rgb`;
for ( $l in $lights ) {
setAttr ($l + ".color") -type double3 [...]