2 expressions in source text?

Community Beginner ,
Aug 14, 2022 Aug 14, 2022

Copy link to clipboard

Copied

Hello,  I use this expression in the Expression Source text

 

thisComp.layer("script.csv")("Data")("Outline")("filaa")("filaa 0");

 

It works great, but when I add this other expression

 

thisComp.layer("Other Layer Name").text.sourceText.style;

 

The first one stops working. There is any way that I can execute 2 expressions in the source text?

 

Thank youCaptura de Pantalla 2022-08-14 a las 18.35.14.pngCaptura de Pantalla 2022-08-14 a las 18.40.01.png

TOPICS
Expressions

Views

53

Likes

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 ,
Aug 14, 2022 Aug 14, 2022

Copy link to clipboard

Copied

Try it this way:

s = thisComp.layer("Text_02").text.sourceText.style;
s.setText(thisComp.layer("script.csv")("Data")("Outline")("filaa")("filaa 0"))

Likes

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 ,
Aug 14, 2022 Aug 14, 2022

Copy link to clipboard

Copied

LATEST

Great! It works, thank you!!!

Likes

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