Re: FxPlug ProgressAPI on FCP
Re: FxPlug ProgressAPI on FCP
- Subject: Re: FxPlug ProgressAPI on FCP
- From: Benjamin Kent <email@hidden>
- Date: Mon, 15 Oct 2007 17:59:10 +0100
Oh, I see, so it's not really a mechanism to halt processing completely
in response to a specific key press (such as the escape key). The reason
I need it is to stop an analysis loop in response to a push button which
goes through the entire sequence - unfortunately I can only check for
userHasCancelled at the end of each frame of processing, and it appears
that checking this rarely doesn't seem to catch the interrupt - does
this sound believable? In which case I guess I'll just have to add my
own cancel button with the push button.
Thanks
Ben
Paul Schneider wrote:
Hi, Ben,
-userHasCancelled means that you should abort rendering, because some
user activity has invalidated your render. In other words, the user
is dragging a slider, so the parameters have changed since you started
rendering. We will be calling you to render again with the new
parameter values, or new time, or whatever else has changed. Each
user action triggers a new render; checking for -userHasCancelled lets
you abort an invalidated render early so you can move on to the next one.
If you want to temporarily disable rendering entirely, so you can
adjust a bunch of parameters without any lag, you can hit caps lock in
FCP.
Motion doesn't have the caps lock mechanism, but they render effects
on a secondary thread, so the UI stays responsive.
HTH,
- Paul
On Oct 15, 2007, at 12:27 PM, Benjamin Kent wrote:
Hi
Looking at the Slow_SolidColor example, it would appear that even
when you hit escape and the plug-in catches the interrupt with a call
to userHasCancelled, the plug-in just gets asked to render again
anyway - i.e. the cancelling doesn't really work. Is hitting escape
not the correct way to interrupt or is this a bug?
Thanks
Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden