Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 17-12-2013 , 06:34 PM
Registered User
Join Date: Dec 2013
Posts: 1

PolyUnite syntax error

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?

# 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 ||::
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads