ScriptSpot

Forum topic · Scripts Wanted

Strech object along spline

By tuxmask75 · 2013-04-16

Description

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 (4)

fajar · 2013-04-17

try script obj to spline aligner ?

Seems like a nice script, But

tuxmask75 · 2013-04-17

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 · 2013-04-16

Did you tryed PathDeform modifier?

Path deform fail

tuxmask75 · 2013-04-16

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