Announcement

Collapse
No announcement yet.

VRayLightRect Shape Type:

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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 .

    e: info@adriandenne.com
    w: www.adriandenne.com

    Comment


    • #3
      I’ll try it asap

      Comment


      • #4
        Franco, your'e the man. Thank you so much.

        I need to up my mel script skills.

        Comment


        • #5
          glad it worked for ya
          e: info@adriandenne.com
          w: www.adriandenne.com

          Comment

          Working...
          X