Motion
Get Motion

ReferenceScripting APIMotionCamerasetDistance

MotionCamera.setDistance

method

Moves it nearer or further.

NamesetDistance
Kindmethod of MotionCamera
Called asscene.camera(…).setDistance(…)
Since0.4

Syntax

setDistance(    distance: number,    seconds?: number): Promise<boolean>

Parameters

NameTypeDescription
distancenumberIn the layer's units
secondsnumberOptional. Over how long

Returns

Promise<boolean>: a promise of true when it's there.