Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions hold last frame expression

  • hold last frame expression

    Posted by Sam Pauwels on March 1, 2022 at 10:23 am

    Hi,
    I’m building an After Effects template where I would like to have an expression that finds the last frame of a comp or footage that will change every day.

    I’ve tried with a timeRemap expression outPoint – 0.04 but for some reason that doesn’t work.

    Any advice anyone?

    Filip Vandueren replied 4 years, 2 months ago 2 Members · 5 Replies
  • 5 Replies
  • Filip Vandueren

    March 1, 2022 at 6:19 pm

    Not sure, but maybe source.length – source.frameDuration ?

  • Sam Pauwels

    March 1, 2022 at 11:06 pm

    hmm, that does not work, at least not as a timeRemap expression. I guess maybe because length is a distance property, not a time property?

  • Filip Vandueren

    March 2, 2022 at 8:05 am

    D’oh,

    I meant:

    source.duration-source.frameDuration;

    alhough just source.duration; will probably work too because time remap should take care of showing the last frame even if the number is too high.

    So in theory even this works too:

    Number.MAX_VALUE;
  • Sam Pauwels

    March 2, 2022 at 8:25 am

    Hey Filip,

    Thank you so much! that first line works perfect!

    source.duration gives the full duration of the layer. In TimeRemap that means it returns a blank frame. Same with number.MAX_VALUE.

    Also very nice to see Belgian people here, I’m from Borgerhout. As a matter of fact, I went to school with your girlfriend/wife 😀

  • Filip Vandueren

    March 2, 2022 at 8:36 am

    Hi Sam, it’ll give a blank frame for a precomp, but not for footage.

    Groetjes uit Diest 🙂

    Filip

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