View Full Version : Extrude along spline (root growing effect)

11 November 2005, 06: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.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

CGTalk Moderation
11 November 2005, 06:41 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.