View Single Post
# 2 01-06-2011 , 07:08 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
I see a few issues.

Line 2

Code:
$name = 36;
the variable isn't defined with a datatype. Int datatype is appropriate here.

Code:
int $name = 36;
On line 7,

Code:
$namestring = "extrudedSurface",$name;
looks like bad syntax so I'm sure that will error out. I'm guessing you want $name to count upwards from 36 for each loop executed and use it as a suffix for "extrudedSurface". In that case, line 7 should be.

Code:
$namestring = ("extrudedSurface" + $name);
The rename statement doesn't have a semi colon and you didn't give the rename command anything to work with really.

Code:
rename $namestring
It should more like...

Code:
rename $namestring $newName;


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::