@motion-script/core / VideoFillProp
Interface: VideoFillProp
Defined in: attributes/shape/fill/implementations/video.ts:16
Properties
anchor?
optionalanchor?:Anchor
Defined in: attributes/shape/fill/implementations/video.ts:26
The point held fixed as zoom scales. See ImageFillProp.anchor.
blend?
optionalblend?:"color"|"multiply"|"screen"|"overlay"|"darken"|"lighten"|"color-dodge"|"color-burn"|"hard-light"|"soft-light"|"difference"|"exclusion"|"hue"|"saturation"|"luminosity"|"normal"
Defined in: attributes/shape/fill/implementations/video.ts:58
crop?
optionalcrop?:Insets
Defined in: attributes/shape/fill/implementations/video.ts:22
Window onto the source frame, applied before fit. See ImageCrop.
duration?
optionalduration?:number
Defined in: attributes/shape/fill/implementations/video.ts:56
filters?
optionalfilters?:VideoFillFilter[]
Defined in: attributes/shape/fill/implementations/video.ts:54
fit?
optionalfit?:ImageFit
Defined in: attributes/shape/fill/implementations/video.ts:20
How the (cropped) frame is scaled into the node's bounds. Defaults to 'fill'.
loop?
optionalloop?:"reverse"|"none"|"forward"
Defined in: attributes/shape/fill/implementations/video.ts:55
matrix?
optionalmatrix?:ImageMatrix
Defined in: attributes/shape/fill/implementations/video.ts:28
Raw frame→shape matrix; wins over everything above. See ImageFillProp.matrix.
opacity?
optionalopacity?:number
Defined in: attributes/shape/fill/implementations/video.ts:57
playing?
optionalplaying?:boolean
Defined in: attributes/shape/fill/implementations/video.ts:43
Whether the derived timestamp advances with the node's clock. Default true.
playStart?
optionalplayStart?:number
Defined in: attributes/shape/fill/implementations/video.ts:52
Seconds after the painting node appears before playback begins (default
0). Use it when the fill joins a node that already existed — a video
cross-faded in at 4s into a node's life would otherwise open 4s into the
clip. Negative values start the clip already in progress.
speed?
optionalspeed?:number
Defined in: attributes/shape/fill/implementations/video.ts:53
src
src:
string
Defined in: attributes/shape/fill/implementations/video.ts:18
timestamp?
optionaltimestamp?:number|null
Defined in: attributes/shape/fill/implementations/video.ts:41
Source time to paint, in seconds — an explicit override. Omit it (the
default) and the timestamp is derived at draw time from how long the node
painting the fill has existed, so a video fill plays on its own wherever
it is used (fill, overlay, stroke, shadow, a raw Graphics in a custom
node) with nothing to wire up. Set it to drive the playhead yourself —
e.g. tween it to scrub the clip.
Pass null to hand the playhead back to the clock: Node.set skips
undefined values (it merges a partial), so null is what un-does an
override that is already live.
trimEnd?
optionaltrimEnd?:number
Defined in: attributes/shape/fill/implementations/video.ts:45
trimStart?
optionaltrimStart?:number
Defined in: attributes/shape/fill/implementations/video.ts:44
type
type:
"video"
Defined in: attributes/shape/fill/implementations/video.ts:17
zoom?
optionalzoom?:number
Defined in: attributes/shape/fill/implementations/video.ts:24
Magnification on top of the fitted scale. See ImageFillProp.zoom.