Skip to main content
Inspiring
April 7, 2018
Answered

Render Interrupt

  • April 7, 2018
  • 1 reply
  • 1081 views

Hey, quick question about when the user interrupts the render process-

When a frame isn't finished rendering and the user moves the playhead (like scrubbing), does After Effects not wait until the render function is done? Does frame setdown get called?

So many questions...

This topic has been closed for replies.
Correct answer shachar carmi

no, frame setdown is not called in-between. the plug-in should call

PF_ABORT to see if AE wants to quit the current frame's render.

should the plug-in decide to honor AE's request to abort the render, it

should return PF_Interrupt_CANCEL as the error code from the main entry

point.

On Sat, Apr 7, 2018 at 11:11 PM, Trenton Waller <forums_noreply@adobe.com>

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
April 7, 2018

no, frame setdown is not called in-between. the plug-in should call

PF_ABORT to see if AE wants to quit the current frame's render.

should the plug-in decide to honor AE's request to abort the render, it

should return PF_Interrupt_CANCEL as the error code from the main entry

point.

On Sat, Apr 7, 2018 at 11:11 PM, Trenton Waller <forums_noreply@adobe.com>

Inspiring
April 7, 2018

If I don't check for interrupt with PF_ABORT, is After Effects forced to finish the render?

Community Expert
April 7, 2018

AE doesn't just kill plug-ins in mid call. AE tells your plug-in it wants

to abort, and waits for the render call to return. that call with either

return with PF_ErrNONE, or PF_Interrupt_CANCEL (or some other value, but

these are the two relevant values for this discussion).

if PF_ErrNONE is returned, AE might cache that result. if

PF_Interrupt_CANCEL is returned, AE will discard the content of the output

buffer as it's been reported as invalid.

On Sat, Apr 7, 2018 at 11:38 PM, Trenton Waller <forums_noreply@adobe.com>