So if you wanted to give the select naked edges part priority over the named object handling, take this piece:
code:
else if ( selected_objs.numBReps > 0 )
{
/* If surfaces are selected, select their naked edges */
selected_objs.setProperty( 'selected', false );
var breps = selected_objs.getBReps();
for ( var i = 0; i < breps.length; ++i )
{
var brep = breps.item(i);
brep.getNakedEdges().setProperty( 'selected', true );
}
}
Remove the "else" at the start there and insert a done = true; inside it, and move it above the named object handling which starts at this comment:
/* If a named object is selected, deselect it and select the next one */
And if you want it to do naked edges if only one object is selected change this:
if ( selected_objs.numBReps > 0 )
to this:
if ( selected_objs.numBReps == 1 )
But like I mentioned, if you do that then if you have a solid that is a named object and it is the only object with that name, the "step to next named object" is going to get stuck on it.
= Michael
|