Select (or query) uv border edges

Hi. I can't find anywhere if there's a way to select (or query) UV shell border edges (or query if an edge is on the border of a uv shell).

I know I could use Select Shell Border and convert to edges using the polyListComponentConversion command with the -internal flag set to true, but this gives me the wrong result if part of a UV shell consists of a polygon strip because then the edges between the borders will be selected as well.

Any ideas?

You have to store the original selection first.
Here's a script that I made to cut selected facets from a uv map. Theirs a final version on my powerbook -with some lines that checks the selection first before executing and declared variables- but I don't have it with me right now.
If the script doesn't help you... check the following
polySelectBorderShell 1; // selects uv border
polySelectBorderShell 0; // selects uv shell

Cheers!Rudy Massar

global proc cutFaceFromUvMap(){

// store the selected faces
$selFaces = ls -sl -flatten;

// define the border of the selection and cut the UV's
$faceToEdge = polyListComponentConversion -toEdge -border;
polyMapCut -name "FaceFromUvMap" $faceToEdge;

// select the original faces
select $selFaces;

// makes a conversion list from selected components
$makeFaceMove = polyListComponentConversion -toUV;

// select the converted components
select $makeFaceMove;
};

I use this little proc I wrote... give it an edge and it returns true if it's a border edge..:

global proc int isBorder(string $edge)
{
int $n = size(ls("-fl",(polyListComponentConversion("-fe","-tf",$edge))));
return (!($n-1));
}

also, you could put in a non-manifold check, if ($n > 2) then edge is non-manifold.. makes no diff for me but it may be useful for whatever you want this for...

hope that helps ya..

:nathaN

How would I go about writing this functionality for all geometry border edges (not based on uv shells) in python?