Okay, here are the steps, with screenshots.
NOTE: up until now both the image for the Effect Source and Drop zone fill the 1920x1080 area of the viewable workspace.
What I'm seeing in my plugin in FCP: I'm handed a 1920x1920 image (this happens whether I use the image well or get images from other times from the effect source…and in the case of the effect source retrieval I'm not even using the image well! So why is my image transformed when I get frames at other times of the effect source?
The image appears to be set by the settings on the Drop Zone, which says "Fit" and not "Fill". So what I'm seeing in my FxPlug in FCP (in both getting images from other times of the effect source, OR via the image well ) is that my 1920x1080 image is "fit" into a 1920x1920 image (which I presume comes from the fact that the Drop Zone is 600x600 pixels, and these dimensions are scaled to fit the biggest dimension). Then when I resize to fit the 1920x1080 output size, what I see is similar to what you see in image 5… that the image is squashed with black bars on the top and bottom.
You shouldn't have to do anything special. It should default to the same size as the project (even though the media tab says something different).
This is not what I'm seeing Darrin. Perhaps you can debug what I might be doing different than what you are doing in order to get the project size for the Image well accessed via the Drop Zone? Pete
From: Darrin Cardani < email@hidden> Date: Thu, 04 Aug 2011 15:57:08 -0700 To: Peter Litwinowicz < email@hidden> Cc: Pro-Apps-Dev < email@hidden> Subject: Re: so confused about image wells/drop zones for Final Cut Effect templates.
Pete, This should be working correctly. Maybe you can clarify some things for me below? On Aug 3, 2011, at 6:34 PM, Peter Litwinowicz wrote: Okay, I'm trying to create a template where I can drop a clip into an image well INSIDE FCP.
So when I look at the image (media) properties for the my Effect Source it has "Final Cut Placeholder". Cool enough. Then I presume this special Effect Source drop zone is get the template resolution when I use it within FCP.
Yes, that should be the case. When I create another Drop Zone that I drop into one of my image wells so that I may use the image well in FCP, I see that the image (media) properties shows me that the drop zone is 600x600. I want the new drop zone to just be the template size (because otherwise I get scaling to the drop zone size of 600 to 600 and then stretched to fit 1920x1080, so something weird like that… still haven't figured it out yet). Argh, is the Effect Source a special placeholder, where other Drop Zones have defined sizes? Is that true? (if so, This is very confusing as to how to set up generic templates with image wells).
The 600x600 value is just the size of the image we use as a placeholder. Are you seeing that value in your code when you stop in your render method and get the image well image (when there's something actually in the image well)? Also, you probably want to set the drop zone to "Stretch" mode rather than "Fit" or "Center", I think. Let me ask you this: how do I set up an image well so that it's at least the same size template. Right now if I change the Fixed Width to 1920, I get both Fixed Width and Fixed Height set to 1920. How am I supposed to get this to be 1920x1080?
You shouldn't have to do anything special. It should default to the same size as the project (even though the media tab says something different).
Darrin
|