Single script to select different things

 From:  Psygorn (DRILLBIT)
11127.24 In reply to 11127.23 
Hi Michael,

I tried getting it again and it works (No Error now)

But I cannot replicate the effect in the YouTube Video I sent to you earlier!

For example when I have a face selected it cannot select edges that are in contact with the selected face!

I am using this script for a long time now it selects edges of a selected face "script: /* Select edges v1.4 */ var gd=moi.geometryDatabase, so=gd.getSelectedObjects(); function ss(o,v){o.setProperty("selected",v)} function sl(o){ for ( var i=0; i<o.length; ++i ) o.item(i).getEdges().invertProperty("selected");} gd.selectLoop(); sl(so.getFaces()); sl(so.getSolids()); sl(so.getOpenBReps()); sl(so.getSingleFaceBReps()); ss(so.getBReps(),0); ss(so.getFaces(),0);"

But I want to have more than that and be able to select edge loops as well as corner edges (like the YouTube video) I appreciate your help in advance :-)

- Psygorn