Motion
Get Motion

ReferenceScripting APIMotionPropertyOptions

MotionPropertyOptions

interface

What the property decorator takes: its range, unit and label in Studio's Details, and whether it's shown, exposed and kept.

NameMotionPropertyOptions
Kindinterface
Since0.3

Syntax

interface MotionPropertyOptions { … }

Properties

NameTypeDescription
minpropertynumberThe smallest value it takes.
maxpropertynumberThe largest value it takes.
unitpropertystringThe unit shown after its number ("px", "s").
sliderpropertybooleanTrue to show it as a slider from min to max.
labelpropertystringIts name in Details (the field's own name, in words, unless given).
categorypropertystringThe heading it's under in Details.
editablepropertybooleanWhether Details shows it (true unless given).
exposedpropertybooleanTrue to offer it in the wallpaper's settings.
savedpropertybooleanTrue to keep its value between runs.