Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 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