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

Clone animation via expression to other layers

Explorer ,
Apr 19, 2024 Apr 19, 2024

Copy link to clipboard

Copied

Hi,

i want to make a really simple clone of a xPosition animation from one layer (Layer A) to another layer (Layer B). Layer B sits somewhere in the timeline, layer A starts at the beginning and has to keyframes starting at 0. I need to clone layer B several times, so it would be handy to change the keframes and timing in layer A and all layers are synced.

 

thx for ideas 🙂

TOPICS
Expressions

Views

94

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 ,
Apr 19, 2024 Apr 19, 2024

Copy link to clipboard

Copied

valueAtTime() is your friend.

 

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 Beginner ,
Apr 19, 2024 Apr 19, 2024

Copy link to clipboard

Copied

LATEST

Hi,
I'm not 100% sure what you're trying to achieve. I think you're trying to copy postition parameters to other layers but with a time offset, right?

 

If yes, you can use the expression 

valueAtTime()

 

1. Create your animation on your target layer.

2. Create the child layer.

3. Create the following expression on the xPosition of the child layer:

thisComp.layer("target").transform.xPosition.valueAtTime(time - 1)

Now those layers take the xPosition of the layer "target" with a time offset of "time-1" = the actual time - 1 second = 1s offset.

 

If you have multiple layers that should all have a time offset of 1s of the layer below you can write the following expression:

thisComp.layer(index+1).transform.xPosition.valueAtTime(time - 1)

Now the child layer takes the layer below (index+1) and then you can create unfinite layers with the same expressions.

 

Did that solve your problem?

 

 

 

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