weird parameter value on FCP's XML interchange format
weird parameter value on FCP's XML interchange format
- Subject: weird parameter value on FCP's XML interchange format
- From: email@hidden
- Date: Sat, 22 Sep 2007 09:44:31 +0200
Hello,
greetz to all members of the mailing list.
Here's my problem:
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?
regards,
Clancy
_______________________________________________
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