How can I change the Shape Type on many lights at once? The attribute spread sheet does not have this item listed.
Announcement
Collapse
No announcement yet.
VRayLightRect Shape Type:
Collapse
X
-
if you copy this into your mel script editor, select the rectangle lights and run, it will change the light shapes. To choose which shape, rectangle or disc, you need to change the end value from either 0 (rectangle) or 1 (disc) depending on what type you want.
string $selects[] = `listRelatives -s `;
string $currentObject;
for( $currentObject in $selects )
{
//CHANGE THE VALUE AT END OF LINE TO SWAP SHAPE TYPES
setAttr ($currentObject + ".shapeType") 1 ;
}
so no one laugh at my noob mel script ok .
Comment