It seems that each of the two curves would need to have an orientationlist , to control which end is blended ?
Would the order inside get.Input(1).getValue() be orient1, seam1, orient2, seam2 ?
What is the proper way to make the new orientlist for setInput(1, orientlist) ?
The following code does not change the blending order. G3 Blending still occurs between the closest ends of the 2 curves.
code: var blendfactory = moi.command.createFactory( 'blend' );
blendfactory.setInput( 0, curvelist );
// blendfactory.setInput( 1, orientationlist );
blendfactory.setInput( 2, 'G1' ); //versus 'G2' or 'G3'
blendfactory.setInput( 3, 1.00 );
// blendfactory.setInput( 4, pointlist );
// blendfactory.setInput( 5, vector );
var bCurve = blendfactory.calculate();
var orientations = blendfactory.getInput(1).getValue();
blendfactory.cancel();
var orient = orientations.item(0);
orient.flipped = !orient.flipped;
var seamvalue = orientations.item(1); //try to get the (un-needed) seam for the new orientlist ?
var orientlist = concat(orient.flipped, seamvalue.seam); //try to make a new orientlist for the two curves ?
var blendCurve = factory( 'blend', curvelist, orientlist , 'G3', 1.18 ); //This still makes the 2 spirals.
- Brian
|