Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Lighting & Rendering (https://simplymaya.com/forum/forumdisplay.php?f=17)
-   -   How to turn of render stats on multiple items? (https://simplymaya.com/forum/showthread.php?t=30214)

sjtaylor84 23-06-2008 12:39 PM

How to turn of render stats on multiple items?
 
Hi there,

I've just converted some paint effects flame to nurbs but want to turn off cast and receive shadows in the render stats. I don't really want to have to go through 600 pieces turning them off manually and shift selecting the lot and doing it doesn't work. Is there a way to do this?

Thanks in advance!
Simon

Alan 23-06-2008 12:42 PM

Select everything you want and then hit down on the keyboard to select the shape nodes (or just select the shape nodes straight away). Then run the following in the script editor.

Code:


for($s in `ls -sl`)
{
        setAttr ($s + ".receiveShadows") 0;
        setAttr ($s + ".castsShadows") 0;
}

Alan

sjtaylor84 23-06-2008 12:49 PM

Thank you!


All times are GMT. The time now is 01:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018