Historically, the way to detect an empty image well was to use the FxTimingAPI to ask for the duration of the item in the image well. A value of kFxDuration_Undefined means the well is empty.
I agree that there should be standard behavior for getBitmap/getTexture for empty wells, and returning you the placeholder image does seem pretty odd.
On Aug 12, 2011, at 2:34 PM, Peter Litwinowicz wrote: FYI: if you are going to do something like return the Effect Source image when a clipwell is empty, then I at least need another call that tells me whether or not the image well is empty, so I can not even try to get the image well image.
Pete
From: Peter Litwinowicz < email@hidden> Date: Fri, 12 Aug 2011 10:23:56 -0700 To: Pro-Apps-Dev < email@hidden> Subject: Re: Testing empty image wells
Um, it's a bug. Filed.
What do you mean "we never specified how it should work internally"? That's silly… If it's empty, I should be able to know that. Also, that's the way it's worked for years in FCP. Pete
Pete,
This is unintentional behavior, though it's not so much a bug as I don't think we ever specified how it should work internally. Please file a bug. I know how to make it work in Motion, but need to do some research to get it working properly in FCPX.
Thanks, Darrin On Aug 4, 2011, at 6:02 PM, Peter Litwinowicz wrote: So I'm trying to test if my image well, via a drop zone, in FCP has not been set.
In FCP 6/7, I would call FxParameterRetrievalAPI –getInputBitmap with the param ID as one of the arguments. If the image that came back was NULL then I would know the image well was empty.
InFCP X, it appears the FxParameterRetrievalAPI –getInputBitmap never returns a NULL image, but returns an image from the Effect Source if the Image Well is empty. This is a problem, because having no image specified for an image well is quite a different statement from filling it in with the Effect Source if the user does not supply a clip for the image well.
To the apple folks: is what I report expected behavior? And in any case: is there any way I can test for an empty image well? 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
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
|