ReferenceScripting APIMotionBounds
MotionBounds
interfaceWhere a layer is on the scene, 0 to 1 of it: the box round it, and its turn in degrees.
| Name | MotionBounds |
|---|---|
| Kind | interface |
| Script reaches it as | MotionLayer.bounds |
| Since | 0.3 |
Syntax
interface MotionBounds { … }Properties
| Name | Type | Description |
|---|---|---|
xproperty | readonly number | Its left edge, 0 (the scene's left) to 1 (its right). |
yproperty | readonly number | Its top edge, 0 (the scene's top) to 1 (its bottom). |
widthproperty | readonly number | How wide it is, as a share of the scene's width. |
heightproperty | readonly number | How tall it is, as a share of the scene's height. |
rotationproperty | readonly number | How far it's turned, in degrees. |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.