Re: Reference Image parameters in a FxGenerator
Re: Reference Image parameters in a FxGenerator
- Subject: Re: Reference Image parameters in a FxGenerator
- From: Darrin Cardani <email@hidden>
- Date: Mon, 23 Mar 2009 14:16:51 -0700
Brian,
As Paul said, it would help to have more information. But I wanted to
point out one small problem with your code snippet below. The value
returned by -getBitmap::::: is not whether or not the control has an
image assigned to it. It's whether or not the call was successful.
There may be no image assigned to the image well, and the call will
still return YES if no errors occur (which should be always). If
you're using that variable to determine whether to use the returned
FxBitmap, you will likely crash before there's anything in the image
well.
Darrin
On Mar 23, 2009, at 11:00 AM, Brian Gardner wrote:
Just as a sanity check....
I'm writing an FxGenerator plugin for FCP/Motion.
It has a reference image parameter, and the parameter shows up okay.
I can assign a source video to the parameter okay in FCP & Motion.
But, when I try to access the image in renderOutput,
the request fails.
Can I access a reference image in an FxGenerator?
(Or is that forbidden)
If I can, do I use the same parmsApi request as I
would in a Filter or Transition type plugin...
or is there something different required in a Generator plugin?
-- Brian
PS: Small code clippette looks like:
FxBitmap * controlImageMap;
double offsetX = 0, offsetY = 0;
BOOL isControlImageAssigned =
[parmsApi getBitmap:&controlImageMap
layerOffsetX:&offsetX
layerOffsetY:&offsetY
requestInfo:renderInfo
fromParm:kControlImageParamID
atTime:renderInfo.frame];
_______________________________________________
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