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?
Solved! Go to Solution.
Solved by john.paul.giancarlo. Go to Solution.
hello I have made this video so can see how to make it work
hope this helps
// 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;
}