Re: FCP X and parameterChanged
Re: FCP X and parameterChanged
- Subject: Re: FCP X and parameterChanged
- From: Garrick Meeker <email@hidden>
- Date: Fri, 01 Jul 2011 16:27:33 -0700
We call getBitmapInput both from OSC and parameterChanged (was custom UI in FxPlug 1). It works in Motion 4 and 5, but not FCP X. If this is really working for you then maybe I need to keep looking into this.
Nope, FxHostCapabilities is showing this in FCP X:
hostID: com.apple.Motion
hostIsFCP: NO
hostIsFCE: NO
hostIsMotion: YES
hostVersionNumber: 0x5008000
formatsFloatRGBABitmapsAsARGB: NO
supportsHiddenParameters: YES
supportsDisabledParameters: YES
supportsGroupParameters: YES
notifiesParameterChangedForGenerators: YES
parameterChangedUsableForAllParameters: YES
upscalesFields: YES
supportsTemporalBitmaps: YES
timeBase: 0
On Jul 1, 2011, at 3:56 PM, Darrin Cardani wrote:
> Garrick,
> That's a really good point about background rendering. Shoot. OSCs should be getting the correct time, though, so yes that could work. You should be able to check out images from either an OSC or parameterChanged. I have never done it from an OSC, but in theory it should work. Our new Keyer plugin samples its input during -parameterChanged:, so that should work just fine.
> I believe that the FxHostCapabilities hostID will tell you that you're in Final Cut.
>
> Darrin
>
> On Jul 1, 2011, at 3:42 PM, Garrick Meeker wrote:
>
>> Reported as Bug ID# 9714238.
>>
>> Hmm, the last render time seems fragile with all the timeline rendering happening. Maybe get the time from an on-screen control?
>>
>> Any thoughts about checking out images from on-screen controls or parameterChanged? Should I file this as a bug or an enhancement request? Is there anything I can do now other than cache images from render calls?
>>
>> FxHostCapabilities always reports Motion now, right? Do I need to look at the id of the application bundle to figure out if these workaround are necessary?
>>
>> On Jul 1, 2011, at 9:53 AM, Darrin Cardani wrote:
>>
>>> Garrick,
>>> This appears to be a bug that we aren't propagating the current time in some cases. Please file a bug.
>>>
>>> As for workarounds, one option would be to use whatever was the last render time if currentTime comes back as 0. It's fragile, but may be better than nothing.
>>>
>>> Darrin
>>>
>>> On Jun 30, 2011, at 10:17 PM, Garrick Meeker wrote:
>>>
>>>> I'm seeing some issues here that could seriously affect our products. First, we get the current time in the parameterChanged method with:
>>>>
>>>> id <FxCustomParameterActionAPI> actionAPI = [_apiManager apiForProtocol:@protocol(FxCustomParameterActionAPI)];
>>>> double t = [actionAPI currentTime];
>>>>
>>>> That works in Motion 5 and has always worked before, but in FCP X it seems to always be 0.
>>>>
>>>> And we also need access to images outside of renderOutput, specifically in parameterChanged and from on-screen controls (or custom UI in FxPlug 1). I realize this isn't guaranteed by the API but it works in Motion 4 and 5. FCP X seems to return a solid color. I've only tried the bitmap calls here. Stuffing the current OpenGL context into an FxRenderInfo to get a texture seems problematic. Trying to cache a frame from the render calls seems difficult too because of FCP's timeline rendering.
>>>>
>>>> I can file a bug but I'm really hoping there are workarounds for this release.
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>> --
>>> Darrin Cardani
>>> 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
>
> --
> Darrin Cardani
> 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