Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression equivalent of ‘Right Click – Time – Time Stretch’

  • expression equivalent of ‘Right Click – Time – Time Stretch’

    Posted by Harold Durnez on April 10, 2015 at 7:44 am

    Hey guys,

    I’m creating a project file for a client of mine who needs to adjust settings as they please. A template as per say.

    Using expression controls, sliders control etc.
    I’m setting up various ‘global controls’ for them to easily make changes.

    Question:

    I’d like to link a slider control to the amount of time stretch on a comp.
    I.e. When I increase the slider control, it increases the time stretch on the comp.

    Side note: I also need to keep the loopOut(type =”cycle”) expression I have on the comp.

    Many thanks,
    H

    Harold JM Durnez
    ha****@*******co.za
    http://www.fullhd.co.za
    facebook.com/fullhd.co.za
    behance.net/HaroldDurnez
    vimeo.com/harolddurnez

    Dan Ebberts
    replied 11 years ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 10, 2015 at 5:18 pm

    You can’t control time stretch with an expression, but you could probably use a time remapping expression like this:

    s = effect(“Slider Control”)(“Slider”);
    stretch = ((s < 0) ? Math.min(s,-1) : Math.max(s,1))/100;
    (time/stretch)%source.duration

    Dan

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