Skip to main content
Participating Frequently
Mar 10, 2024 6:13 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

12 replies

Legend
Mar 11, 2024 12:51 AM UTC

 

this expression should be enough:

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

 

Translate
Participating Frequently
Mar 11, 2024 7:44 AM UTC

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.

Translate
Legend
Mar 11, 2024 8:56 AM UTC

You must name things correctly.

 

Translate