ReferenceScripting APIMotionCamerasetDistance
MotionCamera.setDistance
methodMoves it nearer or further.
| Name | setDistance |
|---|---|
| Kind | method of MotionCamera |
| Called as | scene.camera(…).setDistance(…) |
| Since | 0.4 |
Syntax
setDistance( distance: number, seconds?: number): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
distance | number | In the layer's units |
seconds | number | Optional. Over how long |
Returns
Promise<boolean>: a promise of true when it's there.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.