Forum Replies Created

  • Anoki Acharya

    December 30, 2020 at 10:35 pm in reply to: SetFont and get different line width in same text box

    Added setFont and setText together and it works now. Thank you Filip!

    I have been at this for few days now.

    var txt = ""

    var dropDownFontMenuIndex = thisComp.layer("settings").effect("Font Menu Control")("Menu").value;

    if (time < 0){

    s = value.split("\r");

    for (i = 0; i < s.length; i++){

    if (time > -10*(i+1)){

    txt = s[i];

    break;

    }

    }

    }else{

    txt = value

    }

    switch ( dropDownFontMenuIndex ){

    case 1:

    style.setFont("Rockwell-Bold").setText(txt);

    break;

    case 2:

    style.setFont("Antonio-Bold").setText(txt);

    break;

    default:

    style.setFont("Rockwell-Bold").setText(txt);

    };

  • Anoki Acharya

    December 30, 2020 at 10:27 pm in reply to: SetFont and get different line width in same text box

    That didn’t work but that gave me another idea. I will see if that works.

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