View Single Post
# 2 17-12-2013 , 10:10 PM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522

I keep getting a syntax error when I try to put the result of a polyUnite into a string array.

Code:
string $polySurf[]; = `polyUnite $planeList[0] $planeList[$planeCount]`;
Any ideas as to what the syntax error is?

Code:
string $polySurf[]; = `polyUnite $planeList[0] $planeList[$planeCount]`;
In MEL the semi colon indicates the end of a statement. In that one line of code you've written two statements. The first statement can stand on its own since it is declaring an empty string array. The second one doesn't make any sense since it's an incomplete assignment statement. Delete the semi colon I highlighted and it should work.


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