W: script for selecting perimeter of selected face

 From:  Michael Gibson
3867.2 In reply to 3867.1 
Hi Yenmonger, there is one script here that will allow you to select all the edges of one face boundary, the way it works is by selecting 2 edges of the boundary and then running the script:

That allows you to be more selective since it would let you grab just the outside boundary of a face that has a bunch of internal holes in it for example.

To just switch selection to all edges that belong to a selected face, use this script:

script: /* switch selection from a face to its edges */ var gd = moi.geometryDatabase; var faces = gd.getSelectedObjects().getFaces(); gd.deselectAll(); for ( var i = 0; i < faces.length; ++i ) faces.item(i).getEdges().setProperty( 'selected', true );

- Michael