Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Time Remap layer to comp duration with expression

  • Time Remap layer to comp duration with expression

    Posted by Eric Staswick on May 14, 2015 at 5:04 pm

    I have a simple task that I can’t seem to figure out. I need to time remap a video footage layer to the duration of the comp. I need to do this through expression as I am automating the process of creating multiple comps. I suspect it is quite simple but my searches have not turned up anything.

    I could also do this by time remapping to the duration of a certain layer in the comp if that is easier.

    Thanks for the help!

    -Eric

    Walter Soyka replied 11 years, 3 months ago 3 Members · 6 Replies
  • 6 Replies
  • Eric Staswick

    May 14, 2015 at 5:53 pm

    Thanks for the feedback Dave. We have been doing it this way for 2 years, just manually moving the keyframe, just looking for a way to automate that. I’m not too worried about frame rate because the “footage” is basically a fancy slideshow, mostly static with some transitions, and the range it would need to be remapped to is between 35 and 45 secs, not enough to make a big difference.

  • Cassius Marques

    May 14, 2015 at 6:11 pm

    maybe something like:

    a=thisLayer.source.duration;
    b=thisComp.duration;
    (a/b)*time

    …on the time remmap property?

  • Eric Staswick

    May 14, 2015 at 6:15 pm

    Perfect! Thanks.

  • Cassius Marques

    May 14, 2015 at 6:21 pm

    Just watch out with frame rates mismatches, I’m not sure how it will behave on those cases.

  • Walter Soyka

    May 14, 2015 at 11:29 pm

    [Cassius Marques] “Just watch out with frame rates mismatches, I’m not sure how it will behave on those cases.”

    The calculation will be fine. The duration property counts seconds (with decimals as necessary), not frames, so there’s never a mismatch across different timebases.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Walter Soyka

    May 15, 2015 at 2:53 pm

    [Dave LaRonde] ” I can only imagine what video would look like when subjected to the random-length result of this time remapping trick.”

    One way to find out!

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

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