Re: inconsistent FxPlug color parameter behavior
Re: inconsistent FxPlug color parameter behavior
- Subject: Re: inconsistent FxPlug color parameter behavior
- From: Dave Howell <email@hidden>
- Date: Mon, 1 Oct 2007 21:57:20 -0700
Hi Steve,
Unlike Motion, FCP does not currently support RGBA color parameters.
As a workaround, as you said, you could add a separate float alpha
slider, but you would only want to do this in a host that doesn't
support RGBA parameters. Unfortunately there's no flag in
FxHostCapabilities.h that would tell you whether or not the host
supports RGBA colors. If you assume that FCP doesn't support alpha,
and you add a separate alpha slider to your plug-in, and then a new
FCP adds alpha to its RGBA colors, you suddenly have two conflicting
alphas and your users are confused. So, what to do?
Here's an idea. I'm not sure if it will work though. In your
addParameters method, you could add an RGBA parameter, and set its
value to something with an interesting alpha. Then retrieve the value
to see if the alpha value is correct. If it's right, then the host
supports RGBA; if not, then only RGB (in which case you would add the
alpha slider). Looking at FCP's FxPlug code, it appears that this may
work, but I haven't tried it.
There are some other things we could try, but this is most
straightforward, if it works.
Dave
On Oct 1, 2007, at 9:33 PM, Steve Christensen wrote:
In my plug-in, I have a color parameter that I added using -
addColorParameterWithName:parmId:defaultRed:defaultGreen:defaultBlue:d
efaultAlpha:parmFlags:.
In Motion, the parameter shows up, as expected, with all four
channels (RGBA) in the UI and clicking on the color swatch brings
up a color panel that includes an alpha slider. In FCP, the
parameter shows up as HSB and clicking on the color swatch brings
up a color panel with only grays/RGB/CMYK/HSB selectable. This
really seems like it's broken, certainly inconsistent.
Can I hope that this will work as expected in the future or should
I just assume that's the way it'll always be and create a separate
alpha parameter?
steve
_______________________________________________
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