Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Text Layer to output a Layer’s Effects’ names and values

  • Text Layer to output a Layer’s Effects’ names and values

  • David Avila

    June 9, 2021 at 6:48 am

    I have one Guide Layer with 20+ effects that I want to monitor using using a Text Layer. This might have been an ExtendScript issue because I used three expressions on three layers to write myself all the code for all of the steps required.

    One for-loop to write a variable name for each Effect Name and Effect Value (“Checkbox”). Another for-loop to write the expression with the variable names & values concatenated with escape-carriage-returns. And finally, I pasted the result into a third text layer which outputs the final trackers. I realized I could have done the first two Expressions inside of a browser console and pasted the final expression into AE.

    I was wondering if there was a simpler way with Expressions, but I’m not so sure. It all started with the issue of iterating through a Layer’s total Effect count. This is what I wrote in a Notepad++ file, cut down some; it’s too much code to post and more of a conceptual problem.

    I’m sorry if this is too out of topic for Expressions; I don’t know where else to ask.

  • David Avila

    June 9, 2021 at 6:43 pm

    I realized I could have just done this to create the 2 lists.

    text = "";

    for (i = 1; i < 50; i++) {

    text +=

    labelName${[i]} = thisComp.layer("Checker").effect(${[i]}).name;</p><p>labelValue${[i]} = thisComp.layer("Checker").effect(${[i]})("Checkbox");</p><p>

    }

    text2 = "";

    for( j = 1; j < 50; j++){

    text2 +=

    labelName${[j]} + ":" + "" + labelValue${[j]} + "\\r" +</p><p>

    }

    text + "\r" + text2

Viewing 1 - 2 of 2 posts

Log in to reply.

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