ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Time remap with markers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kirill Komrakov
Time remap with markers
on Feb 28, 2019 at 10:59:54 am

Hi! I need some help with the time remaping. It is a template for titles and lower thirds. Usually i just place two keyframes in the begining and in the end of the composition and by moving them you can adjust duration. But recently i've found an expression which is binding two keyframes to a marker and by moving markers you can change duration. The problem is, that in the frame just before the second marker some things just dissapper. I've tested it in diffrenet versions of AE but the problem still there and i can't figure out why. All i can think of it there is something wrong with calcultaion of time.

Here is how it looks


Here is the screenshot for this issue


Here is the link to a project file if someone decide to look into it (AE 2017 required)
13160_modernminimaltitles.aep.zip

It is not something very important but i just want to figure what is wrong with it. Thanks for help in advance!

The expression

T = thisLayer;
if ((T.marker.numKeys > 1 ) && (numKeys > 3)){
sIn = key(2).time - key(1).time;
sOut = key(4).time - key(3).time;
eIn = T.marker.key(1).time;
eOut = T.marker.key(2).time;
if (time &lt; T.marker.key(2).time)
linear(time,eIn-sIn,eIn,key(1).value,key(2).value)
else
linear(time,eOut,eOut+sOut,key(3).value,key(4).value);
}else
value;


Return to posts index

Oleg Pirogov
Re: Time remap with markers
on Feb 28, 2019 at 10:49:15 pm

Can be fixed by toggling Collapse Transformations.


Return to posts index

Kirill Komrakov
Re: Time remap with markers
on Feb 28, 2019 at 10:52:17 pm

Amazing..... thanks a lot, that worked!
Any idea why this happened? Just curiose.


Return to posts index


Oleg Pirogov
Re: Time remap with markers
on Mar 1, 2019 at 3:28:07 am

It's Motion Blur issue. Namely, Motion Blur applied to shape layers of nested comp with animated Scale.

Due to the big time skip at the problem point, Motion Blur acts weirdly, sampling frames far from actual frame.
The "disappearing" elements are elements with applied Motion Blur that samples frames from time where Scale=0%.

By default Scale animations are rendered before Time Remap. Collapse Transformations makes them being rendered after Time Remap.

Another fix is to set Shutter Phase = 0 in nested comp settings (Advanced tab).


Return to posts index

Kirill Komrakov
Re: Time remap with markers
on Mar 1, 2019 at 11:07:17 am

Ok, got it. Thanks a lot!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]