Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/resources/contents/code/extensions/test.mel
- This file was added.
proc string[] getSelectedLights() | |||||
{ | |||||
string $selectedLights[]; | |||||
string $select[] = `ls -sl -dag -leaf`; | |||||
for ( $shape in $select ) | |||||
{ | |||||
// Determine if this is a light. | |||||
// | |||||
string $class[] = getClassification( `nodeType $shape` ); | |||||
if ( ( `size $class` ) > 0 && ( "light" == $class[0] ) ) | |||||
{ | |||||
$selectedLights[ `size $selectedLights` ] = $shape; | |||||
} | |||||
} | |||||
// Result is an array of all lights included in | |||||
// current selection list. | |||||
return $selectedLights; | |||||
} | |||||
No newline at end of file |