VRayLightRect Shape Type:

How can I change the Shape Type on many lights at once? The attribute spread sheet does not have this item listed.

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 . :wink:

I’ll try it asap

Franco, your’e the man. Thank you so much.

I need to up my mel script skills.

glad it worked for ya :slight_smile: