Moving lines

New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

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! 

Adobe Community Professional
Correct answer by Rick Gerard | Adobe Community Professional

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.

Poi to null.gif

 

TOPICS
Expressions, How to, Scripting

Views

319

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Moving lines

New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

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! 

Adobe Community Professional
Correct answer by Rick Gerard | Adobe Community Professional

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.

Poi to null.gif

 

TOPICS
Expressions, How to, Scripting

Views

320

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 25, 2020 0
Adobe Community Professional ,
Apr 25, 2020

Copy link to clipboard

Copied

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:

ScreenFlow.gif

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 25, 2020 0
New Here ,
Apr 25, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 25, 2020 0
New Here ,
Apr 26, 2020

Copy link to clipboard

Copied

Just another question: Is there a way to attach another layer's position to the same shape too?  The line movements worked perfectly but I need some textures to follow the lines as well.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 26, 2020 0
Adobe Community Professional ,
Apr 26, 2020

Copy link to clipboard

Copied

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.

Poi to null.gif

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 26, 2020 0
New Here ,
Apr 26, 2020

Copy link to clipboard

Copied

I think I am doing something wrong here: when I pickwhip the position property of the texture layer to the line shape layer, the position of the texture layer jumps out of the scene. I want it to be in a specific place and move from there according to the shape layer's position. Any idea what I might be getting wrong?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 26, 2020 0
Adobe Community Professional ,
Apr 26, 2020

Copy link to clipboard

Copied

If you just use the pickwhip to tie the properties together the position values will be identical. If you also need to animate the position of the linked layer you need to add a value + before the link to the layer. If you just need to adjust the position, sometimes it is easier to just adjust the anchor point in the timeline. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 26, 2020 0
New Here ,
Apr 26, 2020

Copy link to clipboard

Copied

Wonderful, that did the trick, thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 26, 2020 0