View Full Version : Any ideas on animating splines??
Guiniture 05-27-2008, 01:32 PM 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.
|
|
decapitator
05-27-2008, 02:05 PM
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.
Check "with animate context" in the maxscript helpfile that should help you out
Guiniture
05-27-2008, 03:22 PM
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?
decapitator
05-27-2008, 03:31 PM
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?The length isnt defined by a 'length' but by the distance between two vertices so you have to move those around.
Guiniture
05-27-2008, 06:13 PM
mmm I was hoping there might be an easier solution?!
Thanks for that, il have a look.
davestewart
05-27-2008, 09:45 PM
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
CGTalk Moderation
05-27-2008, 09:45 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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.