View Single Post
# 1 19-05-2008 , 03:13 AM
bendingiscool's Avatar
Join Date: Jul 2006
Location: London
Posts: 567

mapping multiple objects in mel

I have a bunch of cubes and I would like to write a script that does an automatic map on them. I tried this after selecting all the cubes...

string $polyBlocksArray[] = `ls -sl`;

for ($myObject in $polyBlocksArray) {



I get an error saying "Doesn't work with multiple objects selected". How would I go about getting the loop to go through them one at a time and map that way?

Many thanks in advance