Uploaded August 2026 | Updated September 2026, 3 hours ago
Script inputs let you run multiple instances of the same script, each with its own unique property values. Lance walks through how to define inputs for numbers, view models, and artboards, and how to listen for property changes.
What's covered:
- Creating a number input with a default value
- Adding the script to the stage and setting per-instance values
- Binding an input to a view model property via data binding
- Why update instead of init when using data binding (init fires before the binding is ready)
- Using late for view model inputs that can't have a default value
- Accessing nested view model data with .value
- Adding an artboard as an input and reading its view model data
- Listening for property changes with addListener
- Passing self into a listener callback to access current state
Script inputs let you run multiple instances of the same script, each with its own unique property values. Lance walks through how to define inputs for numbers, view models, and artboards, and how to listen for property changes.
What's covered:
- Creating a number input with a default value
- Adding the script to the stage and setting per-instance values
- Binding an input to a view model property via data binding
- Why update instead of init when using data binding (init fires before the binding is ready)
- Using late for view model inputs that can't have a default value
- Accessing nested view model data with .value
- Adding an artboard as an input and reading its view model data
- Listening for property changes with addListener
- Passing self into a listener callback to access current state










