ReferenceScripting APIMotionPropertyOptions
MotionPropertyOptions
interfaceWhat the property decorator takes: its range, unit and label in Studio's Details, and whether it's shown, exposed and kept.
| Name | MotionPropertyOptions |
|---|---|
| Kind | interface |
| Since | 0.3 |
Syntax
interface MotionPropertyOptions { … }Properties
| Name | Type | Description |
|---|---|---|
minproperty | number | The smallest value it takes. |
maxproperty | number | The largest value it takes. |
unitproperty | string | The unit shown after its number ("px", "s"). |
sliderproperty | boolean | True to show it as a slider from min to max. |
labelproperty | string | Its name in Details (the field's own name, in words, unless given). |
categoryproperty | string | The heading it's under in Details. |
editableproperty | boolean | Whether Details shows it (true unless given). |
exposedproperty | boolean | True to offer it in the wallpaper's settings. |
savedproperty | boolean | True to keep its value between runs. |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.