Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Text Corner (worked in CC2015 and have issue in CC2019)

  • Text Corner (worked in CC2015 and have issue in CC2019)

    Posted by Sina Farang on December 12, 2020 at 1:21 pm

    Hello everyone

    in this projects i have to read a text from specific marker comment and create a dialogue box like what u see in attached images

    because there is more than 100 markers i tried to automate it by expressions

    so i wrote this code for reading marker comments easily and it works fine:

    n=thisComp.layer("Controler").effect("Caption Number")("Slider");

    comp("Audio").layer(1).marker.key(n).comment;

    and also these codes for placing shapes in correct position

    for bottom left:

    gap =thisComp.layer("Controler").effect("Gap")("Slider") ;

    L = thisComp.layer("MyText");

    r = L.sourceRectAtTime(0,true);

    y = L.position[1] + (r.top + r.height - L.anchorPoint[1])*L.scale[1]/100 + scale[1]*height/200 + gap;

    x = L.position[0] + (r.left - L.anchorPoint[0])*L.scale[0]/100 - scale[0]*width/200 - gap;

    [x,y]

    and this for top right :

    gap = thisComp.layer("Controler").effect("Gap")("Slider");

    L = thisComp.layer("MyText");

    r = L.sourceRectAtTime(0,true);

    x = L.position[0] + (r.left + r.width - L.anchorPoint[0])*L.scale[0]/100 + scale[0]*width/200 + gap;

    y = L.position[1] + (r.top - L.anchorPoint[1])*L.scale[1]/100 - scale[1]*height/200 - gap;

    [x, y]

    as u can see in attached images these expressions worked very well in AE CC2015

    but in CC2019 there is an issue u can see in images

    please help me

    thanks

    Sina Farang replied 5 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies

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