Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions calculate composition unstretched time

  • calculate composition unstretched time

    Posted by Rami Yaron on October 21, 2019 at 4:21 pm

    how can I get or calculate the original current composition time of a time-remapped or stretched layer.
    My composition has both stretched and non stretched layers and I want to display the current playback time (relative to the composition) as it would be if non of the layers were stretched.

    Oleg Pirogov replied 6 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Oleg Pirogov

    October 29, 2019 at 2:56 pm

    In case of time-remapping it appears to be quite straightforward as the Time Remap property of the nested comp is exactly the playback time of that nested comp.

    In case of stretching it is not as straightforward since Stretch property is not accessible through expressions, otherwise the desired playback time would be:
    (time-thatLayer.startTime)/(thatLayer.stretch/100)
    A dummy workaround would be to just type in the layer’s Stretch value as a constant.

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