Strech object along spline

Looking for a script that can stretch an object along a spline from its pivot point, however that does not use any Banking or rotation on any select Axis of X, Y , or Z if we so choose, All while following the spline shape.

here is an image.