trouble with tic marks

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  01 January 2013
trouble with tic marks

hello all,

i am kind of a noob at MEL maybe.

i often like to capture items as variables when i create them so i can rename them etc, even if i do not know what Maya may have named them. so i use syntax like the following

string $group_name[] = `group -em`;
rename $group_name[0] "character_group";

but i find lately in 2013 (unless it was happening before and i am just crazy) that sometimes using and array causes errors and instead i have to use the syntax as follows

string $group_name = `group -em`;
rename $group_name "character_group";

so in the first sample, i need to use an array or 2013 throws an error. in the second sample, i have to just use a string variable or 2013 throws an error. i have tried to make sense of it, but i cannot figure out why one or the other method will work and why. it is simple enough to change one method to the other if it fails, but it is kind of driving me nuts.

thanks so much for any help
__________________
http://www.vincentdelay.com

" . . . the essential in life is invisible to the eye, one can only see rightly with the heart." (The Little Prince)
 
  share thread



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 08:57 AM.


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