Re: Wrapping FxPlugs in .moef
Re: Wrapping FxPlugs in .moef
- Subject: Re: Wrapping FxPlugs in .moef
- From: Darrin Cardani <email@hidden>
- Date: Mon, 18 Jul 2011 08:58:38 -0700
On Jul 17, 2011, at 1:12 AM, Martin Baker wrote:
> We're having some roadblock issues with wrapping a custom FxPlug in a .moef and using in FCPX.
>
> 1. FxRenderInfo.frame returns the frame number relative to 29.97fps (regardless of the FPS of the .moef). e.g. frame 4 on a 25fps FCPX timeline is shown as frame 4.8 within the FxPlug. Using a .moef with different fps, seems to not make any difference so does assume .moefs are 29.97fps?
It's not assuming anything. If you created the Final Cut Effect at 29.97, your plug-in will get information based on a 29.97 timeline, regardless of the timing in Final Cut Pro. You can think of it as being similar to how your effect renders when the user turns on Motion Blur in Motion. In that case, you get asked to render 8 times per frame (by default - more or less depending how the user set the Motion Blur), each time with a fractional frame value.
> 2. The returned durationForEffect value is fixed at the duration of the .moef, regardless of the duration of the clip on the FCPX timeline. This makes it impossible to backtime FxPlug animation from the end of the clip. So a 300 frame .moef will always show up in FCPX as 300 frames duration.
Correct. Your effect is not applied to the footage in FCP. It is applied to the drop zone (effect source) in Motion.
> 3. hostIsFCP returns false in FCPX.
>
> I'm presuming all this is happening because the FxPlug has no knowledge of it's top host (FCPX), when wrapped in a .moef. Are there any workarounds?
Yes that's how it works now. We're debating whether we want to change this or not. If you think you should be able to work around it, you can always ask the OS for the bundle ID of the main bundle of the currently running app.
Darrin
--
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