Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hold down the alt key. Read the online help for more details.
Mylenium
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.
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?
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.
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
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.
Copy link to clipboard
Copied
This is a very good concept and practice.
I'll give it a try. Thank you very much!
Copy link to clipboard
Copied
This Expression is very practical, applicable to scale as well. Thank you very much!
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.