Skip to main content
Known Participant
May 13, 2019
Question

Easing and time scale

  • May 13, 2019
  • 1 reply
  • 259 views

Hello,

I use the following snippet to poke the current time of a layer:

A_Time  current_time;

err = layer_suite->AEGP_GetLayerCurrentTime(layerH, timeMode, &current_time);

While this works normally, I had a strange behaviour when I apply it on a layer that has (bare with me !):

1/ an expression to perform a full 360 deg rotation.

2/ an ease-in is applied to this expression.

3/ The whole layer appears as a precomp.

When I request the current_time on the first frame , I get [value=0, scale=1], which is incorrect. When I apply it on frame 2 and beyond I get a time scale = 23976 which is correct.

So it seems like the ease-in of the first frame is stretched. Any solution for this ? thx.

This topic has been closed for replies.

1 reply

Dave_LaRonde
Inspiring
May 13, 2019

Does it really matter all that much?  I seems liken nit-picking to me.

urbellerAuthor
Known Participant
May 13, 2019

Yes it matters because, I use current_time in conjunction with time_step to compute the time of the next frame (and thus, getting the next frame).