Forum Replies Created

Page 1 of 2
  • Anton Shushar

    April 7, 2022 at 8:45 pm in reply to: Show a property using Extendscript

    I modified Filip’s code a bit to support multiple properties. You just need to pass as many properties as you need into revealProperty function as arguments

    Here’s small working example:

    var curComp = app.project.activeItem;
    var curLayer = curComp.selectedLayers[0];

    revealProperty(curLayer.opacity, curLayer.scale);

    function revealProperty(){
     var originalExpressions = [], prop = arguments;
     for(i=0; i<prop.length; i++){
      originalExpressions.push(prop[i].expression);
      prop[i].expression= "1/0";
     }
     app.executeCommand(app.findMenuCommandId("Reveal Expression Errors"));
     $.sleep(1);
     for(i=0; i<prop.length; i++){
      prop[i].expression = originalExpressions[i];
     }
    }

  • Anton Shushar

    April 4, 2019 at 5:32 pm in reply to: Color text set with regex

    Ok, thank you so much! You saved me tons of time.
    May you give me any of your contact?

  • Anton Shushar

    April 3, 2019 at 4:57 pm in reply to: Range Selector based on whole text

    Look, that’s what I have now:

    And that’s what I want, but with spaces instead of undersores:

  • Anton Shushar

    April 2, 2019 at 5:35 pm in reply to: Underline Text With Expression?

    I would be interested in seeing how you solved your problem. Showing an example would be the best option.

  • Anton Shushar

    April 2, 2019 at 12:48 pm in reply to: Color text set with regex

    Yeah, traking property works well, but I’d like it to be depended on scale property, that is percentage value so simple parent won’t work.
    Do you know how I can make it increace/decrease appropriately with scale?

  • Anton Shushar

    April 2, 2019 at 11:41 am in reply to: Color text set with regex

    I just realised that I was setting that expression into “Array”‘s Expresion Selector, not sourceText.
    Thanks, it makes almost what I want. But there is one thing that bother me — when I add scale property besides color, kerning doesn’t change, I mean that those regex-filtered words are intersecting neighbour letters, instead of extending space. Is there a workaround?

  • Anton Shushar

    April 2, 2019 at 4:45 am in reply to: Color text set with regex

    I tried to make exactly what you’ve said, but for some reasons no text generates in “Array”(it remains empty). However, if I make a copy of the original “Text” and apply the expresion, this error appears:
    After Effects warning: Expression Disabled. Error at line 0 in property 'Amount' of layer 2 ('Array') in comp 'Comp 1'.
    expression result must be of dimension 3, not 58

    BTW, I double-checked that original text layer has name of “Text”.

  • Anton Shushar

    April 1, 2019 at 4:37 pm in reply to: Color text set with regex

    I didn’t really get this line:
    I suggest forming an array of indices of to-be-colored chars
    Coould you explain a bit clearly?
    Btw, besides color I’m gonna animate the scale of those words so breaking up the text will lead to kerning issues.

  • Anton Shushar

    March 31, 2019 at 12:33 pm in reply to: Color text set with regex

    Thank you so much! I am also wondering whether you have issues with previewing it? It just proccess like 30 sec per frame. What can I do with such a delay?

  • Anton Shushar

    March 31, 2019 at 10:52 am in reply to: Color text set with regex

    Thank you master, it saved me tons of time! You are the only person who managed to think of the solution.

    I have one more little question: how do I animate this color appearing? Range Selector doesn’t work.

Page 1 of 2

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