View Single Post
# 4 04-08-2006 , 10:03 PM
MattTheMan's Avatar
Registered User
Join Date: Apr 2005
Location: Fairfield, CT
Posts: 2,436
you could do this:
Code:
string $shapes[] = `ls -sl`;
for ($one in $shapes[]){
`setAttr $one+".backfaceCulling 0"`;
}
you can change the middle thing with setAttr, but this script gets all the shapes, puts them into an array. Then it picks the first one, uses it, next one, uses it, next one... and so on. This is what I use for the core of me and arneoog's Maya to Indigo XML converter.

tell me if it works


Live the life you love, love the life you live