Message 1 of 2
MEL Script Error:// More than one object matches name

Not applicable
11-02-2010
09:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to place around 60 objects all at once on a globe in maya, they are pin points that are mapped out to latitude and longitude lines, i have all the code generated but when i paste it into the MEL script editor i get a "//Error: More than one object matches name: Mother_Text" i will attach part of my code at the bottom of this to show you the code i am using, i am wondering if there is a way to do a code break in between line7 and 8 to basically start generating again in the code. i really dont want to have to paste 60 different versions of this code just to get this to work, and this is phase 1, next would be doing almost 1000 place markers and it gets a little crazy after that, can anyone help?
select -r Mother_Text ;
setAttr -type "string" textForBevel2.text "Dubai";
select -r PURE_MOTHER_LON ;
duplicate -rr;
rename "PURE_MOTHER_LON1" "Dubai";
setAttr "Dubai.rotateY" 55;
setAttr "Dubai|LAT_Move.rotateX" 65;
select -r Mother_Text ;
setAttr -type "string" textForBevel2.text "Geneva";
select -r PURE_MOTHER_LON ;
duplicate -rr;
rename "PURE_MOTHER_LON1" "Geneva";
setAttr "Geneva.rotateY" 6.139959;
setAttr "Geneva|LAT_Move.rotateX" 43.796188;
select -r Mother_Text ;
setAttr -type "string" textForBevel2.text "Dubai";
select -r PURE_MOTHER_LON ;
duplicate -rr;
rename "PURE_MOTHER_LON1" "Dubai";
setAttr "Dubai.rotateY" 55;
setAttr "Dubai|LAT_Move.rotateX" 65;
select -r Mother_Text ;
setAttr -type "string" textForBevel2.text "Geneva";
select -r PURE_MOTHER_LON ;
duplicate -rr;
rename "PURE_MOTHER_LON1" "Geneva";
setAttr "Geneva.rotateY" 6.139959;
setAttr "Geneva|LAT_Move.rotateX" 43.796188;