Conditions are the rules that determine when the State Machine transitions from one state to another. Transition Condition Scripts let you define custom conditions when built-in comparisons aren’t enough—such as transitions that depend on complex logic or multiple view model properties evaluated together.Documentation Index
Fetch the complete documentation index at: https://rive-accessibility.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Creating a Transition Condition Script
Create a new script and select Transition Condition Script as the type.Anatomy of a Transition Condition
evaluate runs every frame while the transition is active.It should be fast and side-effect free, and only return whether the transition is allowed.Adding your Transition Condition

Script Inputs
Inputs let you add parameters a transition without changing script logic—making the same condition reusable across different transitions or states. For more information on adding inputs to your scripts, see Script Inputs.Inputs can control scripts, but scripts can’t change the value of inputs.If you need to control a view model property from your script, access the Main View model through context or View Model Inputs.
Setting an Input
To set the value of an input, select the Properties icon next to the transition.
Data Binding an Input
Right-click your property and select Data Bind to bind your input to a view model property.