Animate a line along a path

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Post Reply
Wind-2013
Posts: 2
Joined: Wed May 08, 2019 8:59 am

Animate a line along a path

Post by Wind-2013 » Thu May 09, 2019 12:38 pm

Hello!
How can I animate a line moving along the path?
Something like this
Image
Or it is not possible in Moho 12?

Thanks =)
User avatar
slowtiger
Posts: 5410
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Animate a line along a path

Post by slowtiger » Thu May 09, 2019 1:08 pm

2 ways:

- Stroke exposure.
- Masks.
AS 9.5 MacPro Quadcore 3GHz 16GB RAM OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB RAM OS 10.11 Quicktime 10.7.3
hayasidist
Posts: 2151
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Animate a line along a path

Post by hayasidist » Thu May 09, 2019 2:32 pm

or bones - use a bone to stretch the line.
User avatar
slowtiger
Posts: 5410
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Animate a line along a path

Post by slowtiger » Thu May 09, 2019 3:25 pm

But that only works with straight lines ...
AS 9.5 MacPro Quadcore 3GHz 16GB RAM OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB RAM OS 10.11 Quicktime 10.7.3
User avatar
Maestral
Posts: 337
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

Re: Animate a line along a path

Post by Maestral » Thu May 09, 2019 4:14 pm

For something like that, I`d also go for stroke exposure.
I`ve used the same approach since the existing path can be used for circles to follow and the timing is easy to sync.
mrc
Posts: 107
Joined: Wed Feb 14, 2018 10:36 am
Location: Berlin, Germany
Contact:

Re: Animate a line along a path

Post by mrc » Thu May 09, 2019 4:37 pm

Another vote for Stroke Exposure.

But careful, the tool is a little broken: Motion graphs do not work.

Also, Follow Path and Stroke Exposure work differently around vertices/bends: Follow Path keeps the velocity constant while Stroke Exposure slows down and speeds up around bends. At least in some instances.

Marc
You don't agree with the post above? Click here.
My first Moho project
My second Moho project
hayasidist
Posts: 2151
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Animate a line along a path

Post by hayasidist » Thu May 09, 2019 4:50 pm

slowtiger wrote:But that only works with straight lines ...
the quick and dirty example I tried used one bone per (straight) segment... the OP example is, essentially, just straight lines that are joined together at an angle...
the "head" vectors are bound to a control bone that extends the bone chain one bone at a time until the bone hits it length limit, then the control re-parents to the next one... and so on...

but yeah - many ways to handle this... the compelling idea for me was to have the head control the movement rather than trying to sync line exposure and head motion
Wind-2013
Posts: 2
Joined: Wed May 08, 2019 8:59 am

Re: Animate a line along a path

Post by Wind-2013 » Sat May 11, 2019 7:07 am

Thanks to everyone for answers
Post Reply