Loft Andrei Samardac

 From:  Andrei Samardac
6263.5 
I use this script in my tutorials:

script: /* Expand selection over same styles and loft */ var objects = moi.geometryDatabase.getObjects();var styles = new Array();for ( var i = 0; i < objects.length; ++i ) { var obj = objects.item(i); if ( obj.selected ) styles[obj.styleIndex] = true; } for ( var i = 0; i < objects.length; ++i ) { var obj = objects.item(i); if ( styles[obj.styleIndex] ) obj.selected = true; }; moi.command.execCommand( 'loft' );

This script works this way:
- It selects all with the same style
- Make loft.

Just make all curves you want the same style with this script:
script: /* Asign style*/ moi.ui.propertiesPanel.editStyleIndex( moi.geometryDatabase.addStyle().index );

EDITED: 10 Nov 2013 by ANDREI SAMARDAC