Scripting "Sections"

I’d love to see Rive add a more UX-friendly scripting environment with clearer visual sectioning based on the Protocol API structure. Right now, areas like init, advance, export, listeners, and helpers are all written in a continuous block. While comments help, it can still feel abstract—especially for designers or non-traditional developers.

Imagine the scripting panel visually reflecting the structure Rive already defines under the hood—making it clearer what belongs where, what is editable, and what is part of the required protocol.

Key Ideas:

Structured Script Sections:

Visually separate init, advance, cleanup, exports, and helper functions into clearly labeled, color-coded blocks.

Collapsible Regions:

Allow folding sections like protocol boilerplate or listeners to reduce cognitive overload.

Visual Hierarchy:

Indentation guides or UI framing to show nested relationships (e.g. this function lives inside this section).

This would make scripting feel less esoteric and more accessible. Clearer visual structure would reduce friction and make Rive scripting more intuitive overall.