Hi jpvikholm.
If you want you could also add this little extra code, just below latest code that Michael sent you.
code:
var joinFactory = moi.command.createFactory( 'join' );
joinFactory.setInput( 0, gd.getObjects().getCurves() );
joinFactory.commit();
This code simply join all resulting curves that can be joined.
Best,
|