Skip to main content
Participating Frequently
March 10, 2024
Question

1 PreComp with text animation (duplicate multiple time), In a Comp with changed sourceText keyframed

  • March 10, 2024
  • 1 reply
  • 997 views

Hi everybody,

 

Hard to explain but very simple:

I made a composition where I animated a text.

I put this Comp in another one. I duplicate it multiple time.

I add a sourceText in it. I change the sourceText during time.

I would like my duplicated comp to change its text too.

 

I have this but it doesn't work:

"

thisCompLayer = comp("CompNAME").layer("LayerNAME");
NewTime = thisCompLayer.time + thisCompLayer.startTime;

comp("CompNAME").layer("SourceTextLayerNAME").text.sourceText.valueAtTime(NewTime)"

This topic has been closed for replies.

1 reply

Legend
March 11, 2024

 

this expression should be enough:

comp("CompNAME").layer("SourceTextLayerNAME").text.sourceText.valueAtTime(time)

 

Participating Frequently
March 11, 2024

Thank You for your answer but it doesn't work. I already tried it.

As you can see, the PreComp is duplicated several times and shifted in time.

The Source Text is keyframed.

Legend
March 11, 2024

You must name things correctly.