Script-Problem - Access to point-components

 From:  Michael Gibson
6622.4 In reply to 6622.3 
Hi Karsten, yeah it looks like you're missing one thing on the array curve factory - you need to set the number of items for the factory to build. The ReconstructCurve command that you're based off does this in an "Update()" function, like this:

Factories[i][0].setInput( 3, NumItems );


So before you call .calculate() on the arraycurve factory to generate the arrayed points, you need to set that input index 3 to have the number of points you want to generate, something like this (the >>>>>> <<<<< indicates the added line):

code:
       var Factory = moi.command.createFactory( 'arraycurve' ); //arraycurve erzeugt ein array entlang einer Kurve - Eingabe ist in der naechsten ZEile der Startpunkt der Kurve
       Factory.setInput( 0, startPtObject );		// object (list)
       Factory.setInput( 1, originalCrv );		// path
       Factory.setInput( 2, 'NumItems' );		// array mode

>>>>>> Factory.setInput( 3, 20 ); // Make 20 arrayed items <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

       Factories[i][0] = Factory;                      // in Factory sind die Punkte
       var arrayed_pts = Factories[i][0].calculate();





Does that help?

- Michael