Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions loopOut expression renders my linear expression disabled?

  • loopOut expression renders my linear expression disabled?

    Posted by Jac George on August 21, 2020 at 3:33 am

    Hi there, I’ll try to explain my issue..
    I have 2 text layers, I have successfully made the width of text layer 2 the same as text layer 1 by converting the width of text layer 2 into a percentage of text layer 1. this code is working on the scale transform of text layer 2. The animation has two keyframes on scale. All good so far until I try to add a loopOut(“pingpong”) expression as well to loop my two keyframes. It seems to disable the code above it.

    I hope this makes sense. Any advise is greatly appreciated ?
    thanks
    Jac

    x2 = text.animator("Animator 1_scaleToWord1 percentage").property.scale[0];
    x = linear(time,key(1).time,key(2).time,key(1).value[0],x2);
    [x,value[1]];

    loopOut("pingpong");
    //when the last line - loopOut("pingpong"); is added the code above it is disabled.

    Jac George replied 5 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Robert Müller

    August 21, 2020 at 9:34 am

    the loopOut function is only looking at the keyframe data, so its ignoring all the expression beforehand. You could try building a custom loop expression, Dan has some good ones in this forum. Or you could precompose the text layers, add a time remap to the precomp and add loopOut() to the time remap.

  • Jac George

    August 23, 2020 at 6:44 am

    thank you so much, I went with the precomp and time remap option you outlined, seems to be working ? much appreciated ?

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