CookClip

Anything that lives on a video's timeline for a while. Pictures, sounds, rig clips, notes and camera shakes all start and stop the same way.

CookClip is the abstract base of everything in a CookVideo with an InPoint and an OutPoint: it shows or plays only while the playhead is between them. clip:IsActive(time) says whether it is on at that time, and clip:LocalTime(time) gives the time inside it. In the Cook window every clip moves, trims, slips and splits the same way.

InstanceabstractCook

Properties

NameTypeDefaultDescription
InPointnumber0 to 1e+06The clip's start: it plays only while the playhead is between InPoint and OutPoint.
OutPointnumber0 to 1e+06The clip's end: it plays only while the playhead is between InPoint and OutPoint.

Methods

NameArgumentsReturnsDescription
IsActive(time: number)booleanTrue when the clip covers the given time and its folders are enabled.
LocalTime(time: number)numberThe clip's own time at the given time, Offset plus (time minus In) times Speed, so a trim keeps it.
From Instance 22

Subclasses