Re: Disabling a setting based on the footage
Re: Disabling a setting based on the footage
- Subject: Re: Disabling a setting based on the footage
- From: Darrin Cardani <email@hidden>
- Date: Thu, 29 Jan 2009 16:55:47 -0800
On Jan 29, 2009, at 3:49 PM, Peter Litwinowicz wrote:
Hey FCP, FCE and Motion teams,
I'm making an FxPlug and I want to disable a setting based on
whether the
footage that the effect is applied to is interlaced or not.
Can I do this?
If so, where is the appropriate callback that I should disable the
setting?
I don't know of any acceptable way to do this. You can disable a
parameter using the FxParameterSetting API object. However, you don't
generally know anything about the footage your filter is applied to
until your first render. (Or at least -frameSetup::: or -
getOutputWidth:height:::.) By that time your UI is already drawn. Once
you've rendered and figured out whether you're dealing with interlaced
footage or not, you can update your UI during a -parameterChanged:
call, but that's probably too late.
You might be able to get away with calling the FxParameterSetting API
during a -frameSetup:::, -renderOutput:::, or -getOutputWidth::::
call, but I wouldn't count on that functionality continuing to work in
the future (if it works at all now).
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