CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 06-01-2003, 05:54 PM   #1
PlebianX
Veteran
 
PlebianX's Avatar
 
Join Date: Jun 2002
Posts: 35
Array expression element must be a scalar value???

Gosh, I'm just full of questions! Hehhehehe... But that's what the forums are for, right?! So here goes:

My script gives this snippet of code:

// Error: disconnectAttr ("BendGroup.Bend") ($c + ".curvature");
//
// Error: An array expression element must be a scalar value. //
// Error: }; //
// Error: Syntax error //

So what's and array expression element? I've tried everything here, including putting my two attributes into strings and so forth, so what's causing the fuss?

to give more context it's from the following code, where i'm checking if the selection is in a particular group and in that case deleting the connection.
Code:
string $te[] = `listConnections $c`; if($te[0]=="BendGroup") then { disconnectAttr ("BendGroup.Bend") ($c + ".curvature"); }
 
Old 06-01-2003, 09:02 PM   #2
ajk48n
Frequenter
 
ajk48n's Avatar
portfolio
Adam Katz
Freelance 3d Animator/Motion Graphics Designer
Sydney, Australia
 
Join Date: Nov 2002
Posts: 256
Try getting rid of "then" in your if statement.
 
Old 06-01-2003, 09:59 PM   #3
PlebianX
Veteran
 
PlebianX's Avatar
 
Join Date: Jun 2002
Posts: 35
Thank you!
Found another problem as cosequence, but at least the STRUCTURES right.
That's the problem with know BASIC, C, C++, Visual Basic, Director, Bla bla bla bla bla..... It becomes a random mess after a while.

//PlebianX
 
Old 01-15-2006, 08:00 AM   #4
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:27 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.