Skip to main content
Known Participant
April 12, 2016
Question

After Effects error: Time argument is out of range. What causes this?

  • April 12, 2016
  • 1 reply
  • 1735 views

hi,all,my plugin delete and insert keyframes in a stream,but sometimes it causes "After Effects error: Time argument is out of range.",i checked the time argument carefully and don't find the time is out of range.so what causes this?my plugin need good stability and need to eliminate AE's errors.who knows the reason?any suggestions would be appreciated.

This topic has been closed for replies.

1 reply

Known Participant
April 29, 2016

hi,all,i find that before the error "Time argument is out of range​" occurs,i click the button "add or remove keyframe at the current time" the error also occur.it looks like that the error is caused not only by adding keyframes in code(and set keyframes info.like value\InterpolationType),and also cuased by UI interaction.

Inspiring
April 29, 2016

Well, I'm not sure if I'm right, but I ran into some wired issues when interacting with UI before. In my case, I found that the problem is calling After Effects functions from UI thread.(which seems wired to me, After Effects call are not thread safe, should only be called on main thread, but UI thread should be main thread, right?)

And the solution is to move all your After Effects calls into idle hook, then use AEGP_RegisterIdleHook to fire them, maybe you can give it a try

Known Participant
May 6, 2016

hello,everyone,i found the error only happens when the keyframe curver is like this:

the stream value range is 0-100,when add keyframe in the read area,the error occurs.it seems that the erro is caused by the overflowed value.when i delete the keyframe in the blue box then the error disappeared.


i changed the keyframe's Interpolation to Bezier and set appropriate TemporalEase for the keyframe in the above blue box and resolved the problem.