The script for chain

 From:  bemfarmer
6087.31 In reply to 6087.29 
- Hi Michael
This chain script is turning out to be harder than I thought, when the ends are constrained.
In real life, (under light loads,) chains do not stretch or bend much, or at all, so the curve would change.

One chain link amounts to two points, a constant distance apart, I'm calling the "innerLength."
So the target curve should be represented as a polyline, with constant length line segments.
(It would be like a low resolution curve, made up of constant line segments.)

Array Dir command places points a constant distance along a curve, but sequential pairs are nearly always different distances in space.

ArrayGem script places the points along a curve, with sequential pairs a constant distance apart, in 2D anyway. (need to check 3D).
But ArrayGem usually does not place a point at the end of the curve, it has "left over" curve distance beyond the last point.

Is it possible to have a version of ArrayGem which has start and end points on the curve, and divides up the distance between points to
the constant spacing?

EDITED: 7 Jul 2014 by BEMFARMER