Hi, Emile,
are you calling this code from your render method? The docs say:
Some API’s are only available during render
The FxTimingAPI and FxTemporalImageAPI will only work correctly if called during one of the following selectors: • getOutputWidth: height: • frameSetup • renderOutput • frameCleanup
In addition, sampling keyframed parameters at arbitrary times will only work during these selectors.
- Paul
On May 1, 2007, at 8:48 PM, Emile Tobenfeld wrote: Dave
I'm finding that, in FCP, startTimeOfImageParm:forEffect and , durationOfImageParm:forEffect return -1 regardless of whether or not there is a layer, and fieldOrderForImageParm:forEffect returns 0 regardless.
In Motion startTimeOfImageParm returns 0, and the others return what they do in FCP.
Does the id<FxBaseEffect> in the declaration of these methods mean that I need to do something other than pass the id of the filter instance.
The code snippet in question is
bool GetLayerUsed(void *instance, int aeControlID) { id filterID = (id)instance; UInt32 fxPlugParamID = GetFxPlugParamIDFromAEControlD(aeControlID); BaseBCCFxPlugFilter* theFxPlugFilter = filterID; id timingApi = [theFxPlugFilter->_apiManager apiForProtocol:@protocol(FxTimingAPI)]; double startTime = [timingApi startTimeOfImageParm:fxPlugParamID forEffect:filterID]; Thanks.
At 11:15 AM -0700 4/30/07, Dave Howell wrote: Hi Emile. Look at FxTimingAPI.h, and search for kFxDuration_Undefined. It will be returned by a couple of methods when an image parameter is not connected. Namely, by the methods startTimeOfImageParm:forEffect:, durationOfImageParm:forEffect:, and fieldOrderForImageParm:forEffect:.
Dave
On Apr 30, 2007, at 11:11 AM, Emile Tobenfeld (a. k. a Dr. T) wrote: It would be useful for us to be able to determine whether a well image is used without actually getting the bitmap. Is this possible. If not, consider it a feature request.
--
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
|