weird parameter value on FCP's XML interchange format
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com User-agent: Thunderbird 2.0.0.6 (Windows/20070728) Hello, greetz to all members of the mailing list. Here's my problem: regards, Clancy _______________________________________________ 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... I try to develop some automatic functions to FCP (5.1.4) via Applescript and the XML Interchange Format: I've got a folder full of images which should be placed one after another in the timeline. Every image should be in full screen mode or bigger. And the upper left corner of the scaled images should be equal to the upper left corner of the canvas. I wrote some code in Applescript which creates the XML-projectfile. A repeat loop grabs the images, reads out the imagesize and calculates a scaling factor to fill the canvas. Then it inserts the appropriate XML-Code. Due to the scaling, some parts of the image overlap the canvas (sure!). So now I want the images to be automatically positioned in the upper left corner of the canvas. How to do that? I tried to use the basic motion effect. It does well with the scaling. But when I tried to calculate the correct position of the images using the effect's parameter "center", some strange things appear.... In FCP this parameter is shown as a pixel value. But the corresponding XML-Parameter shows a weird floating point number which, for me, seems to have no reference to the pixel value. This float seems to depend on the scaling value. Every image is of different size, i.e. different scaling values, i.e. different center-parameters. That is why I can't find ONE formula to calculate the position of every image. Why can't the XML-Parameter "center" use the same pixel values like the FCP parameter? Is there a secret relationship between them? Can I use other parameters to move the images? or how can I perform the calculation. Any ideas how to deal with it? This email sent to site_archiver@lists.apple.com
participants (1)
-
das_ich@arcor.de