MotionScript

@motion-script/core


@motion-script/core / VideoFillProp

Interface: VideoFillProp

Defined in: attributes/shape/fill/implementations/video.ts:16

Properties

anchor?

optional anchor?: Anchor

Defined in: attributes/shape/fill/implementations/video.ts:26

The point held fixed as zoom scales. See ImageFillProp.anchor.


blend?

optional blend?: "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?

optional crop?: Insets

Defined in: attributes/shape/fill/implementations/video.ts:22

Window onto the source frame, applied before fit. See ImageCrop.


duration?

optional duration?: number

Defined in: attributes/shape/fill/implementations/video.ts:56


filters?

optional filters?: VideoFillFilter[]

Defined in: attributes/shape/fill/implementations/video.ts:54


fit?

optional fit?: 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?

optional loop?: "reverse" | "none" | "forward"

Defined in: attributes/shape/fill/implementations/video.ts:55


matrix?

optional matrix?: ImageMatrix

Defined in: attributes/shape/fill/implementations/video.ts:28

Raw frame→shape matrix; wins over everything above. See ImageFillProp.matrix.


opacity?

optional opacity?: number

Defined in: attributes/shape/fill/implementations/video.ts:57


playing?

optional playing?: boolean

Defined in: attributes/shape/fill/implementations/video.ts:43

Whether the derived timestamp advances with the node's clock. Default true.


playStart?

optional playStart?: 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?

optional speed?: number

Defined in: attributes/shape/fill/implementations/video.ts:53


src

src: string

Defined in: attributes/shape/fill/implementations/video.ts:18


timestamp?

optional timestamp?: 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?

optional trimEnd?: number

Defined in: attributes/shape/fill/implementations/video.ts:45


trimStart?

optional trimStart?: number

Defined in: attributes/shape/fill/implementations/video.ts:44


type

type: "video"

Defined in: attributes/shape/fill/implementations/video.ts:17


zoom?

optional zoom?: number

Defined in: attributes/shape/fill/implementations/video.ts:24

Magnification on top of the fitted scale. See ImageFillProp.zoom.