Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to link shape or comp to a line or path?

Participant ,
Sep 03, 2021 Sep 03, 2021

Hello everyone, I need to connect shapes to a line or path, so that if I move the same, all the connected shapes move together (see attached image) is it possible to do this? I await some advice, thanks,.

Attention: I'm not asking how to move a shape on a path, but how to 'connect' shapes to a path or line.

In the image you can see at the beginning the elements (different shapes and line), finally the result I would like to obtain, the arrangement of the shapes along the line, and when I move the points of the same the shapes connected to it must move.

 

Screen.png

TOPICS
Expressions , How to , Scripting
659
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2021 Sep 03, 2021

You have a tool under Window Menu called Create Nulls From Paths. If you have 7 circles, you must create 7 points over your path to allow the script create a null for every path's point.

 

If you select your original path, you can create nulls that follow the path with the Nulls Follow Paths button and this way you can link your circle's position to the null's position (using expressions). As soon as you animate the path, the nulls will be updated with the current position of your path's points.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 04, 2021 Sep 04, 2021

What @Jose Panadero explained is a good solution if you want to animate the shape and the circles should follow.

 

If you want to animate the circle layers and the shape should follow, you can also do this with Null's From Path, but it has the disadvantage that it can only connect the circle positions with straight lines, whereas your example looks curved.

My (paid) extension iExpressions contains the Connect Multiple Layers iExpression, which can also create a curved path that follows the positions of your circle layers.
Here I just have some null layers and the shape follows them, when I move the nulls:
iexpressionsconnectlayers_variant_overviews_gif
See this tutorial:

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 06, 2021 Sep 06, 2021
LATEST

Thanks for reply, this is a great solution!

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