Cancelled action
Cancelled action
- Subject: Cancelled action
- From: Peter Litwinowicz <email@hidden>
- Date: Mon, 31 Jan 2011 17:56:43 -0800
- Thread-topic: Cancelled action
Title: Cancelled action
So I have a plugin that accesses 3 frames with the FxTemporalImageAPI
In both FCP and Motion, if I query fProgressAPI userHasCancelled and get a positive result, I back out of my plugin and return NO as is described in the FxPlug header files. From the header file:
/*!
@method userHasCancelled
@abstract Indicates whether or not the user has cancelled.
@result YES if the user has cancelled. NO otherwise.
@discussion A plug-in should call this method (or the -updateProgress method)
periodically (say, once every tenth of a second) during a slow
render. If the user cancels, the method returns YES, and the
plug-in should then abort the rest of the render and return NO
from its render method.
*/
- (BOOL)userHasCancelled;
However, in Motion this seems to cause Motion to crash. If I return “Yes” from my plug-ins renderOutput call instead, it doesn’t crash, but I’m afraid I’m not doing the right thing.
FYI: this is Motion 4.0.3.
Does this ring any bells?
Pete
_______________________________________________
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