BakerCo
11-15-2005, 05:41 PM
Hey, Im trying to right a script that will animate the extrusion of a cylinder along a spline. So far Ive got the cylinder to animate along the spline, however i need it to extrude all the way down the spline (preferably with a tapered end) to simulate a root growing effect. Any help would be greatly appreciated.
Thanks in advance.
oh and here is my current code:
fn tracePath obj line1 u =
(
local p1 = lengthInterp line1 u
--obj.ExtrudeAlongSpline
obj.pos = p1
)
start = animationRange.start
end = animationRange.end
animate on
for t in start to end by 2 do
(
local u = (t - start) as float / (end - start) as float
at time t tracePath $cylinder01 $line01 u
)
Thanks in advance.
oh and here is my current code:
fn tracePath obj line1 u =
(
local p1 = lengthInterp line1 u
--obj.ExtrudeAlongSpline
obj.pos = p1
)
start = animationRange.start
end = animationRange.end
animate on
for t in start to end by 2 do
(
local u = (t - start) as float / (end - start) as float
at time t tracePath $cylinder01 $line01 u
)
