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

How to parent link position and keep original value ?

Community Beginner ,
Jan 19, 2024 Jan 19, 2024

Copy link to clipboard

Copied

1705662907778 copy.png

TOPICS
Error or problem , Expressions , FAQ , How to , Scripting

Views

817

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
community guidelines
LEGEND ,
Jan 19, 2024 Jan 19, 2024

Copy link to clipboard

Copied

Hold down the alt key. Read the online help for more details.

 

Mylenium

Votes

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
community guidelines
Community Expert ,
Jan 19, 2024 Jan 19, 2024

Copy link to clipboard

Copied

Parenting is different than linking position. If you drag the pickwhip from the position property on one layer to the position property on another, the values will be identical, but the layer will move to the same position in the comp.

 

If you drag the pickwhip from the Parent/Link/layer column to another layer, the position value of the child layer will change, but the layer will remain in the same spot in the composition. The position property will now be displayed as the offset from the Parent layer instead of the layer's position in the composition frame, but the child layer will not move.

 

What are you trying to accomplish? Maybe you are looking for a toWorld or toComp solution so you can have a layer parented to another layer, but drive the position of a third layer based on the position only instead of position, rotation, and scale as you would get when you parent one layer to another.

Votes

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
community guidelines
Community Beginner ,
Jan 21, 2024 Jan 21, 2024

Copy link to clipboard

Copied

Thank you for Rick Gerard's response.

I hope to link the properties (position, scale, and rotate) of layers between different compositions.

Whether holding down the ALT key to pick whip or adding the +value string in the expression, neither method seems to achieve the desired result correctly. Could you please advise on the correct approach?1705906051927 copy.jpg1705906100492 copy.jpg

Votes

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
community guidelines
Participant ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

i think there is way to do what you want but can you please explain why, because it will help me to tell you the correct way.

Votes

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
community guidelines
Enthusiast ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

You need to store the initial position of the parent.

// initial parent position
base = [460,540];

p = comp('Comp 1').layer('Shape Layer 1').position;
v = value;
p - base + v

 

screenshot.png

 

Votes

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
community guidelines
Community Expert ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

 

From your screenshots, it looks like the Anchor Point of the shape layer with the blue circle is not centered on the circle. That means that the Shape/Position or Shape/Transform Shape parameters are not reset to 0, 0.

 

If the Anchor points are not centered (shapes at the default Shape/Position, and Shape/Transform Shape/Anchor Point and Position, a simple pick whip from one comp to another or a comp("Comp Name").property expression is not going to match the positions.

 

If you need to keep the offsets in the main comp's Shape/Transform properties, you'll need to reveal all of the shape/position and shape/transform shape properties and drag the pickwhip to the matching anchor point and position properties. 

 

Votes

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
community guidelines
Community Beginner ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

This is a very good concept and practice.

I'll give it a try. Thank you very much!

Votes

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
community guidelines
Community Beginner ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

This Expression is very practical, applicable to scale as well. Thank you very much!

Votes

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
community guidelines
Community Beginner ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

LATEST

Hi Airweb_AE,

This Expression is very practical,applicable to scale as well.

Thank you very much!

Votes

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
community guidelines
Community Beginner ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

Hi Adam,

Thank you for your reply.

This project is going to be handed over for someone else to implement. In order to streamline adjustable control elements, I have designated "comp1" as the primary control component for him, allowing the movement of keys, adjustment of clips length, basic transformations, and more. This enables efficient editing for him.

 

Votes

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
community guidelines
Community Beginner ,
Jan 22, 2024 Jan 22, 2024

Copy link to clipboard

Copied

Hi Adam,

Thank you for your reply.

This project is going to be handed over for someone else to implement. In order to streamline adjustable control elements, I have designated "comp1" as the primary control component for him, allowing the movement of keys, adjustment of clips length, basic transformations, and more. This enables efficient editing for him.

 

 

Votes

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
community guidelines