kcoutfromlength(
KEY
,
OFFSET
)

The kcoutfromlength( function answers the question “what will the last frame be if i start my cut at the incode and my shot is some number of frames long”?

Parameters

This function has two parameters:

key – starting frame expressed as a text value in the format feet+frames

offset – integer value (number of frames to offset).

Description

Answers the question “What will the last frame be if I start my cut at the incode and my shot is some number of frames long”? (Submitted by Chris Watts)

``````kcoutfromlength("1234+10",3) ☞ 1234+12
``````

Note: This function is equivalent to:

``````feetandframes(kcframes(key)+?(offset>=1,offset-1,offset+1))
``````

• feetandframes( -- takes an integer and returns a feet and frame count for 35mm film.
• kcadd( -- takes a keycode for 35mm film and adds a number of frames to it and returns a keycode as a string.
• kcdiff( -- calculates the number of frames between two frames of 35mm film, using inclusive counts (submitted by chris watts)
• kcframes( -- returns an integer based on a feet and frames count for 35mm film.
• outcode( -- adds one frame to a timecode.
• tc24to30( -- converts 24 frame timecode to 30 frame non-drop timecode.
• tc30to24( -- converts 30 frame non-drop timecode to 24 frame timecode.
• tcadd( -- accepts a timecode as text, and adds some number of frames, returns a timecode string.
• tcdiff( -- calculates the number of frames between two timecodes.
• tcframes( -- returns a number of frames from zero of a 24fps, 25fps, or 30fps timecode.
• timecode( -- returns a timecode string corresponding to an integer.

History

 Version Status Notes 10.0 No Change Carried over from Panorama 6.0.