Forum Replies Created

Page 7 of 7
  • Fabrice Leconte

    January 11, 2021 at 1:11 am in reply to: Eliminate line breaks with regex!

    Try this:

    var w = thisComp.layer("word").text.sourceText;

    var re = new RegExp(w,"g");

    txt = text.sourceText.replace(/\r?\n|\r/g,'').replace(re,function($0){

    return '~'.repeat($0.length)

    });

    if(txt.charAt(textIndex - 1)== '~'){100}else{0}

  • Fabrice Leconte

    January 10, 2021 at 3:11 am in reply to: Eliminate line breaks with regex!

    Hello, maybe something like this:

    if(t.substr(0,OUT).match(/\n/g)){

    OUT -= t.substr(0,OUT).match(/\n/g).length;

    }

  • Fabrice Leconte

    January 7, 2021 at 6:34 pm in reply to: Problem with CSV [invalid text layer]

    Yes, probably a bug.

    Finally, I created a temporary text layer to store the value by adding an expression on it:

    "footage('F1 Starting Grid.csv').dataValue([0,0]);"

    and then I removed the temporary text layer when I don’t need.

    That’s weird but it works. ^^

  • Fabrice Leconte

    May 9, 2020 at 5:55 pm in reply to: Close layer properties list

    Yes, I just think to do it and it works.

Page 7 of 7

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