global proc spooUseLights () { //use selected lights in realtime mode string $currentPanel = `getPanel -withFocus`; modelEditor -e -dl active $currentPanel; string $currentPanel = `getPanel -withFocus`; modelEditor -e -dl selected $currentPanel; }