Re: Reference Image parameters in a FxGenerator
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=QiGjhbuSnJRZ06t2nL/esCAjqRM/iPhKG/t1OecSUGWSkwzd/Eu7KR1hyqjJqnxk; h=Received:From:To:In-Reply-To:Subject:References:Message-Id:Content-Type:Content-Transfer-Encoding:Mime-Version:Date:Cc:X-Mailer:X-ELNK-Trace:X-Originating-IP; Ha.... I guess I failed the sanity check. :-) Thanks, Darrin. I thought the -getBitmap signaled the existence of the parameter assignment for a reference image. My bad. Thanks for correcting me. That was my problem. -- Brian On Mar 23, 2009, at 2:16 PM, Darrin Cardani wrote: Brian, 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 (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/dcardani%40apple.com -- Darrin Cardani dcardani@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... 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. This email sent to dcardani@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Gardner