Forum Replies Created

  • Ricky London

    August 30, 2018 at 11:00 am in reply to: Position Change Script

    Actually after adding a line break in ae essentials source text it shows up in premeire as seperate lines the only problem is that the script does not translate to the premiere mogrt and lines do not move when deleted.. ( i don’t believe that it is reading the seperate lines as an enter keypress)

    can someone test this in premiere :

    add this to text position:

    count = 0;
    for (i=0; i < text.sourceText.length; i++)
    {
    if (text.sourceText[i] == ‘\r’)
    {
    count++;
    }
    }
    value-[0,90*count]

    then add 3 line breaks in the mogrt template and import it into premiere?

  • Ricky London

    August 30, 2018 at 10:18 am in reply to: Position Change Script

    Hey Cassius,

    Thanks for this it’s great!

    just one small problem, as it’s for a mogrt there wont be any enter key presses allowed just the text bounding box will push the text to the next line, so would something like this work?

    if (text.sourceText[i] => 10(characters) )]

    Thanks,
    Ricky.

  • Ricky London

    August 24, 2018 at 3:34 pm in reply to: Dynamic Text scaling to fit inside of a shape ?

    Hi Guys I am trying to put this expression on my text layer scale property and i’m getting this error:

    error at line 5 property ‘scale’ of layer (text) in comp 1.

    property or method named rectangle path 1 in class ‘group’ is missing?

    any ideas where I am going wrong?

    Thanks,Ricky.

    // grab sourceRect based on layer time
    R = sourceRectAtTime(sourceTime(time), true);

    // calculate scale relative to comp
    w = thisComp.layer("Shape Layer 1").content("Rectangle Path 1").size[0] / R.width * 100;
    h = thisComp.layer("Shape Layer 1").content("Rectangle Path 1").size[1] / R.height * 100;

    s = Math.min ( w, h );

    [ s, s ]

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