Skip to main content
carlosa73141914
Participating Frequently
August 14, 2022
Question

2 expressions in source text?

  • August 14, 2022
  • 1 reply
  • 247 views

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 you

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
August 14, 2022

Try it this way:

s = thisComp.layer("Text_02").text.sourceText.style;
s.setText(thisComp.layer("script.csv")("Data")("Outline")("filaa")("filaa 0"))
carlosa73141914
Participating Frequently
August 15, 2022

Great! It works, thank you!!!