Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to copy selection of faces on different object

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
noface789
887 Views, 2 Replies

how to copy selection of faces on different object

So I have 2 somewhat similar objects, and I'm trying to copy the face selection of the first object, and apply THAT selection to the second object. Trying to manually select everything by hand is too difficult given the number of faces I'm dealing with

 

The only help that I've found are 2 scripts in this old forum post:

http://forums.cgsociety.org/archive/index.php?t-631631.html

 

I tried running the scripts but I can't get them to work. I'm still a beginner so I'm not too familiar with MEL just yet. Any ideas how to proceed?

2 REPLIES 2
Message 2 of 3

hello I have made this video so can see how to make it work

 

hope this helps

 

http://www.youtube.com/watch?v=Rn8KZfPI7ec

Message 3 of 3

// Replace these Names with yours
string $SetName = "MySetName";
string $SourceObjName = "MySourceObjName";
string $DestObjName = "MyDestObjName";

int $counter;
string $DestFaces[];

string $sourceObj[0] = `ls -sl`;
select -r -ne $SetName;
selectAllSetMembers outlinerPanel1;
string $SourceFaces[] = `ls - fl -sl`;

for ($i=0;$i<size($SourceFaces);$i++)
{
$DestFaces[$counter++] = `substitute $SourceObjName $SourceFaces[$i] $DestObjName`;
}
select $DestFaces;

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report