lackthereof
02-01-2007, 11:56 PM
Hi. I'm having trouble automating this action. I need to turn off the "casts shadows" box for the render stats in the shape nodes of the 3,000+ objects that shouldn't cast shadows. I tried selecting them all (the base nodes) and running this:
setAttr ".castsShadows" 0;
but it gives me this: "// Error: Not enough data was provided. The last 2844 items will be skipped. //" and does not turn off shadows for any but the last object selected. I picked the shape nodes only from the hypergraph (since that's where the render stats are) and ran this script but same error.
Anyone know this probably simple answer? Help is much appreciated!
setAttr ".castsShadows" 0;
but it gives me this: "// Error: Not enough data was provided. The last 2844 items will be skipped. //" and does not turn off shadows for any but the last object selected. I picked the shape nodes only from the hypergraph (since that's where the render stats are) and ran this script but same error.
Anyone know this probably simple answer? Help is much appreciated!
