Skip to main content

StretchPoint

Class

A point in the FaceStretchVisual feature.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v193

Index

Properties

delta

delta: vec3

The direction in which the stretch should occur.

Since

Lens Scripting Version 193

Default Value

(0, 0, 0)

index

readonly index: number

The index of the stretch point

Since

Lens Scripting Version 193


weight

weight: number

The strength of the stretch effect.

Since

Lens Scripting Version 193

Default Value

0

Methods

getTypeName()

static getTypeName(): TypeName<StretchPoint>

Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

Returns

TypeName<StretchPoint>

Since

Lens Scripting Version 193