I don't get "lofting" by script to work. I try to put a loft between two ellipses. Manually it's so simple. Do I need a orientations list and if yes, how is this used?
code:
var list = moi.createList();
list.add( moi.vectorMath.createPoint( 0, 0, 0 ) );
list.add( moi.vectorMath.createPoint( 0, 1, 0 ) );
factory = moi.command.createFactory( 'loft' );
factory.setInput( 0, moi.geometryDatabase.getSelectedObjects() ); //ObjectList
//factory.setInput( 1, list ); //Orientations List ???
factory.setInput( 2, 'straight' ); //Loft style
factory.setInput( 3, true ); // Cap ends
//factory.setInput( 4, false ); // closed ????
factory.setInput( 5, 'Exact' ); // Profiles
factory.commit;
|