Skip to content

Instantly share code, notes, and snippets.

@nbreslow
nbreslow / physicalLight2PointLight.mel
Created September 30, 2013 20:56
Here is a small script to automate the creation of a point light. It creates a point light with a connected Physical Light. Alternatively it connects a physical Light to the selected Lights.
//Here is a small script to automate the creation of a point light. It creates a point light with a connected Physical Light. Alternatively it connects a physical Light to the selected Lights.
proc string create_Physical_Light(int $interior){
string $sel_lights[] = `ls -sl -dag -leaf -lights`;
string $phyLight = `mrCreateCustomNode -asUtility "" physical_light`;
string $blackbody;
if ($interior) {
$blackbody = `mrCreateCustomNode -asUtility "" mib_blackbody`;
} else {