Thank you so much for the super-duper quick reply Michael!
That script has exactly the info i needed to get it running.
To summarize it quickly: The "trick" is basically to call factory.calculate() (and then cancel())
instead of .commit() and use the returned object-list as input for the next
transform-factory:
var scaleFactory = moi.command.createFactory( 'scale' );
scaleFactory.setInput( 0, curve );
scaleFactory.setInput( 1, pointpicker.pt );
scaleFactory.setInput( 2, 2.0 ); //scale
scaledCopyCurve = scaleFactory.calculate(); // (actually an list of objects)
scaleFactory.cancel();
var rotFactory = moi.command.createFactory( 'rotate' );
rotFactory.setInput( 0, scaledCopyCurve );
rotFactory.setInput( 1, rotFrame );
rotFactory.setInput( 2, 5 ); // angle
rotFactory.commit(); // either like this or use .calculate()/.cance() again (if more transforms follow)
Achim
|