Notifications
Clear all

[Closed] Any ideas on animating splines??

Hi,

I have made lots of splines which create branching structures, I know need to animate them growing. I was hoping it would be as easy as using something like:

 for i in splines do 
(
spline_length = i.length
slidertime-=1 ; i.length = 0
slidertime+=10 ; i.length = spline_length
)

However, this clearly does not work! Does anybody have any ideas of how i might achieve this??

Any suggestions would be really appresiated!!

Cheers.

5 Replies
1 Reply
(@decapitator)
Joined: 11 months ago

Posts: 0

Check “with animate context” in the maxscript helpfile that should help you out

Thanks for the reply, but I dont think the problem is with the animation type. The problem is that you can not set the spline length.

I was wondering if their is a way of getting around this?

1 Reply
(@decapitator)
Joined: 11 months ago

Posts: 0

The length isnt defined by a ‘length’ but by the distance between two vertices so you have to move those around.

mmm I was hoping there might be an easier solution?!

Thanks for that, il have a look.

If the splines you’re animating are only 2 points, I’d probably tackle it aligning the pivot point to the first vertex, then animating the object’s scale.

If there’s more than 2 verts (ie, your splines are not just simple lines) you may want to look at other ways.

Post a scene if you want any further input.

Dave