Motion
Get Motion

ReferenceScripting APIMotionBounds

MotionBounds

interface

Where a layer is on the scene, 0 to 1 of it: the box round it, and its turn in degrees.

NameMotionBounds
Kindinterface
Script reaches it asMotionLayer.bounds
Since0.3

Syntax

interface MotionBounds { … }

Properties

NameTypeDescription
xpropertyreadonly numberIts left edge, 0 (the scene's left) to 1 (its right).
ypropertyreadonly numberIts top edge, 0 (the scene's top) to 1 (its bottom).
widthpropertyreadonly numberHow wide it is, as a share of the scene's width.
heightpropertyreadonly numberHow tall it is, as a share of the scene's height.
rotationpropertyreadonly numberHow far it's turned, in degrees.