Maya mel Rename script


#1

Hello friends
I write simple script that rename multiple object but it didn’t work and give me an error please help me
its my script

\\
string $objs[] = ls -sl;

for ($rename in $objs ){

rename "pCube*"  "my_cube*" ;

}

and error is // Error: line 5: Too many objects specified for rename. //