Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Add to a value every n frames

  • Dan Ebberts

    November 11, 2023 at 5:22 pm

    Depending on where you want it to start, it might be as simple as this:

    Math.floor(timeToFrames(time)/60)
  • Samuli Alapuranen

    November 11, 2023 at 5:41 pm

    Thanks!

    Works otherwise, but for some reason this expression adds +50 to the value every 60frames instead of +1.

    May this has got to do with the composition where the time remapped layer is placed in is 50 fps?

    EDIT: did a little editing for clarification

  • Dan Ebberts

    November 11, 2023 at 5:55 pm

    Time remap values are in seconds, so if you add 1, that will amount to a 50 frame bump each increment. Maybe you want something like this:

    framesToTime(Math.floor(timeToFrames(time)/60))
  • Samuli Alapuranen

    November 11, 2023 at 6:01 pm

    I think I got this!

    (Math.floor(timeToFrames(time)/60))/50

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