SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Programming / PolyUnite syntax error

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
17-12-2013, 06:34 PM   #1
ScoobyTheNatty
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?
  Reply with quote
17-12-2013, 10:10 PM   #2
Gen
Super Moderator
 
Gen's Avatar
 
Join Date: Dec 2006
Location: South FL
Posts: 3,518
Quote:
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 ||::
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Reading File... HELP ME PLEASE roryfollansbee Challenge Forum 1 16-04-2016 09:00 AM
trouble opening maya scene jooleyinboots Maya Technical Issues 2 03-02-2014 09:11 PM
Quick way to duplicate/scale concentric walls? Steve555 Maya Basics & Newbie Lounge 8 08-12-2005 02:42 PM
ChannelBoxCustomizer error. onlooker Programming 3 26-03-2004 03:47 PM
Syntax Error, please help DezFX Programming 2 17-01-2004 08:34 AM