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.
| 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 |
@file rules/getting-started.md @file rules/node-scripts.md @file rules/drawing.md @file rules/pointer-events.md @file rules/layout-scripts.md @file rules/converter-scripts.md @file rules/path-effects.md @file rules/data-binding.md @file rules/util-scripts.md @file rules/api-reference.md
Срабатывает, когда: (1) Работа со скриптами Rive или кодом Luau, (2) Код содержит протоколы Node, Layout, Converter или PathEffect. (3) Пользователь упоминает «Rive scripting» или «Rive Luau», (4) Рисование с помощью API Path, Paint, Renderer, (5) Файлы имеют расширение .lua в контексте проекта Rive. Лучшие практики для Rive Scripting — процедурные сценарии на основе Luau. графика, пользовательские макеты, преобразователи данных и эффекты пути, которые выполняются внутри анимации Rive. Источник: stevysmith/rive-skills.