The FXScript Reference

For Final Cut Pro created by Joe Maller

point

point variablename

Additional Notes

x,y or h,v

Point.x and Point.y are interchangable with Point.h and Point.v. These can even be mixed within the same function such as {x,v} and {h,y}.

More versatile than Floats in Subroutines

When declared as an argument for a subroutine, points are able to be modified where float values seem to be read-only.

Final Cut Pro coordinate system

Final Cut Pro places the center of the coordinate system in the center of the image. This means that a point {0,0} is at the center of the canvas and {-360,-240} will be top left in an NTSC timeline.

You can test this with the BoundsOf function. For the 320x240 FXBuilder test window, BoundsOf(dest, poly) returns the following coordinates:

Top left: {-160, -120}
Top right: {160, -120}
Bottom right: {160, 120}
Bottom left: {-160, 120}

As you can see, FCP drops either point {0,0} or somethings else is wrong, because this poly actually describes a 321x241 rectangle.