Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Extract the value inside an expression from a certain layer

  • Extract the value inside an expression from a certain layer

    Posted by Lucas Martin on June 6, 2024 at 12:15 pm

    Hi guys! I have the following expression within the Source Text of different layers:

     

    a= comp(“Data”).layer(“spreadsheet.csv”)(“Data”)(“Outline”)(“ID”)(“ID 0”)

    b= comp(“Data”).layer(“spreadsheet.csv”)(“Data”)(“Outline”)(“Name”)(“Name 0”)

    a + b

     

    I am needing to display in a text layer of another composition the “b” value of one of the layers based on its index.

    That’s possible? thanks!

     

    Lucas Martin replied 2 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 6, 2024 at 2:04 pm

    There isn’t any way to externally access an expression’s internal local variables. The only way an expression can communicate with the outside world is by altering the value of property hosting the expression. However, it seems like your other expressions could get the value of b the same way your posted expression does (from the csv layer).

  • Lucas Martin

    June 6, 2024 at 2:27 pm

    Thanks Dan for the quick response! no problem.

    Yes, I can extract those values ​​in the other composition, but I couldn’t alter the order without having to modify the expression. That’s why my idea of ​​having a comp to establish the order of the results (layers index), and another to display them.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy