rive-scripting
Installation
SKILL.md
Rive Scripting
Rive Scripting uses Luau (Roblox's Lua variant) to create interactive and procedural behaviors inside Rive animations. Scripts run in the Rive editor and export with your .riv file.
Script Types
| Type | Purpose | Key Methods |
|---|---|---|
| Node Script | Procedural drawing and interactivity | init, advance, update, draw |
| Layout Script | Custom sizing and positioning | measure, resize |
| Converter Script | Transform data for bindings | convert, reverseConvert |
| PathEffect Script | Modify paths procedurally | effect |
| Util Script | Reusable helper functions | exports |
Luau Quick Reference
-- Types
type MyState = {
Related skills