Skip to main content
Known Participant
April 25, 2020
Answered

Moving lines

  • April 25, 2020
  • 1 reply
  • 1630 views

I am working on an animation where I want to move multiple curved, vertical lines with different amount of gaps in between to move out of the scene from one side and enter from the other side. Is there a simple way of doing this? I looked into following a motion path but can't really figure out multiple objects following one path. To make things more complicated, I would like to repeat this action of these lines entering and exiting the scene but have different spaces between them and move a different speed each time, so the animation should be adjustable. Any ideas? Thanks! 

This topic has been closed for replies.
Correct answer Rick Gerard

You can use an expression to tie the position of any layer to any other position property. All you have to do is reveal the Parent column, reveal the position properties in the layers you want to link, then drag the pickwhip from one to another. It's a lot easier than doing it manually if all you need is to link the properties. Actually, the only thing that needs to match in the properties is the number of values in the array. Here's a screenshot I just put up for a similar question.

 

1 reply

Braniac
April 25, 2020

If you use shape layers for your vertical lines you can just add a simple expression to all of the duplicate shapes in a single shape layer, then animate the transform shape 1 position. The comp looks like this:

The expression looks like this:

seedRandom( 0, true);
value + content("Shape 1").transform.position / random(.7, 1.4)

All you have to do is adjust the random range to change the speed that of each copy.

Known Participant
April 25, 2020

That's great, exactly what I've been looking for, thank you so much!