The FXScript Reference

For Final Cut Pro created by Joe Maller

duration

duration

Duration counts the total number of visible frames in a specific instance of a clip. Frames are counted using whole numbers starting with 1, so duration will always return a number 1 greater than frame reports as the last frame of a clip.

Multiplying this value by ratio will return the same value as frame. One strange behavior to note is that interlaced DV returns different numbers in Final Cut's viewer and the video monitor. FCPs viewer is counting frames, the video ouput is counting fields (which are considered half-height frames). This can be corrected by dividing by the integer value of the Aspect Ratio + 0.5 (to correct for PAL). The problem does not affect non-interlaced clips or scripts that include the FullFrame definition flag.

Related Links:
getNativeAspect

Additional Notes

Can also use FieldProcessing in FCP 3

Instead of integer (AspectOf(dest) + 0.5), FCP added the FieldProcessing predeclared variable which does the same thing.

aligning of multi camera setup for editing

I have a live show shot with 5 individual cameras and if i have to edit it on FCP,like in Edit PC from Discreet, you have an option that while editing one can see all the cameras after aligned to run simantaneously,but in FCP you cant see all the cameras when aligned,but you have to select indiviual channels to see the footage while editing.so FCP does not work as an online edit.please find or help me to make my editing much easier then what it is now.thank you.god bless

Multicam

From LAFCPUGs Forum:
http://www.lafcpug.org/phorum/read.php?f=1&i=46977&t=46939#reply_46977


You can find a demo on the LAFCPUGs Mar/April 2004 DVD on how you can edit multicam on FCP. http://www.intelligentassistance.com/shop/

Here is one way to do it:
http://www.purcellproductions.com/multicamfcp.html

I have done a 5 camera multicam edit on my old G4 Dual 500, but I had to render my my 5-way split over night ;)

Mikael

This article conflicts with the "frame" article.

The "frame" article says, "FXScript counts the first frame as zero, so the last frame is always one less than the amount reported by duration."

The "duration" article says, "Frames are counted using whole numbers starting with 1, so duration will always return a number 1 greater than frame reports as the last frame of a clip."

I think the counting must start at zero (as stated in the "frame" article) and not 1 (as stated in the "duration" article).

Rob:-]