View Full Version : Get the face inside an Uvset in mel? possible?
thematt 01-08-2007, 01:00 PM Hi all,
Quick question, is there a way too retreive the face that are inside an Uvset, I'd like to select automatically everything in a particular Uvset in mel but can't seems to be able to do it.Can't seems to find the way.
I'd like to do it without looping through each face of the model to check if they are in this particular Uvset.
thanks a lot
|
|
thematt
01-10-2007, 12:10 PM
no one have any clue? it's really important.
thanks anyway I would really appreciate.
kojala
01-10-2007, 12:29 PM
global proc get_faces_in_uv_set()
{
string $select_faces_from_this_uv_set = "uvSet1";
string $sel[] = `ls -sl`;
string $current_uv_set[] = `polyUVSet -q -currentUVSet`;
polyUVSet -currentUVSet -uvSet $select_faces_from_this_uv_set $sel;
select -r ($sel[0] + ".map
");
select -r `polyListComponentConversion -tf -fuv`;
polyUVSet -currentUVSet -uvSet $current_uv_set $sel;
}
get_faces_in_uv_set();
Im not sure if this is what you wanted, but lets try.
thematt
01-10-2007, 02:37 PM
Oh yeah it works...MAn I was going for something so much more complicated..searching inside the polyMesh itself :banghead:..I own you a big one.:buttrock:
thanks a lot you save me.
cheers
CGTalk Moderation
01-10-2007, 02:37 PM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.