Hello everyone,
It's been a while that I haven't used MoI. I tried to refresh myself a bit today, but I found that I forgot all of my selection hotkeys.
I got the idea to create a single "smart" script that would make different selections depending on the situation.
Basically, what I want to achieve is this:
if nothing is selected {
// select all curves
var curves = moi.geometryDatabase.getObjects().getCurves(); for ( var i = 0; i < curves.length; ++i ) if ( !curves.item(i).isClosed ) curves.item(i).selected = true;
}
else if an object is selected
highlight its naked edges (only of the selected object)
else if a face is selected,
selectFaceEdges()
else if edges are selected // loop selection
moi.geometryDatabase.selectLoop()
Since my last login, I learned lots of programming, but I still can't understand MoI scripting due to the lack of API documentation.
is such a script achievable?
|