Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions What is faster? Time remapping or valueAtTime?

  • What is faster? Time remapping or valueAtTime?

    Posted by Andrei Popa on February 14, 2019 at 11:21 am

    Hello there. I am trying to get a trim paths from a shape to start at a certain point. I have 2 keyframes for it, first at the start of the layer and the ther some time after. What method would use less resources? Precomping and adding time remap, or using a valueAtTime on the trim paths property?

    Andrei
    My Envato portfolio.

    Andrei Popa replied 7 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Oleg Pirogov

    February 14, 2019 at 12:39 pm

    So, I’ve made some trim path animation and two comps:
    Comp 1: valueAtTime(time-30) for trim path
    Comp 2: precomped the layer and shifted both Time Remaping keyframes 30 sec forward.

    Render time:
    Comp 1: 1:42, 1:41
    Comp 2: 0:49, 0:48

    So my conclusion would be: WOW, expressions seem to be much slower than time remapping when I expected it to be the other way around.

  • Alex Printz

    February 14, 2019 at 6:52 pm

    yes, time remapping will be faster as Oleg showed.

    It has to do with how expressions run and how after effects renders; every time an expression is calling another value outside of itself to come in, it requires that property to be calculated prior to coming in. (despite already having been rendered and cached, because properties are not cached across frames, only the visual data of the frame!)

    So the first 30 seconds of frames are calculated normally, then after that all frames are going to go back and recalculate the time-30s value of the trim path, then bring them into themselves, then finish calculating their own trim path.

    Precomping, on the other hand, is how the frame is rendered. After effects ALWAYS renders all precomps prior to all other calculations to make the frame, and then when it it is ready it pulls that data back in; I think it is somehow remembering the previously-rendered precomp visual data and simply plopping that down, but I’m not entirely sure.

    The AE render engine is a weird ad-hoc’d system that added content and processes over years that renders in passes that aren’t obvious; I’ve been spending some time trying to learn it, but there’s a lot to be desired on the documentation end.

    Alex Printz
    Mograph Designer

  • Andrei Popa

    February 15, 2019 at 6:31 am

    Thank you guys. This is very helpful to me.

    Andrei
    My Envato portfolio.

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