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.
http://img248.imageshack.us/img248/4889/scalev.png

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fajar's picture

try script obj to spline

try script obj to spline aligner ?

tuxmask75's picture

Seems like a nice script, But

That script rotates the objects to the spline if it has depth ( just as every other method I've attempted.

Picture 1 shows the issue, ( models rotate left and right to align to path)
http://imageshack.us/photo/my-images/689/capture1ud.png/

Picture 2 is how I would like them to behave but when having depth like picture 1.
Notice how they only follow the path and rotate on a single axis.
http://imageshack.us/photo/my-images/195/capture2mu.png/

The best method so far was using path constraints. and 2 bones,
The main bone would be path constrained and animated from the start to finish of the spline, and the child bone which was applied to a skinned model has select Axis locks for some rotations disabled, as well as in heritance for only Y enabled. The issue that I'm getting is that when the object moves threw the loop it bugs out and starts flipping all over the place.

In the picture I disabled follow, bank, and allow upside down. since it really bugs out. just wanted to show the rig.
http://imageshack.us/photo/my-images/10/pathq.png/

Edit: remember I will need to animate the steching effect from start of spline to end.
http://imageshack.us/photo/my-images/209/path2.png/

miauu's picture

Did you tryed PathDeform

Did you tryed PathDeform modifier?

tuxmask75's picture

Path deform fail

The path deform would have been perfect but it rotates (twists)the mesh as it moves along the spline. If the spline has depth.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.