How to trigger box opening animation with state machine click?

Hi everyone,

I’m experimenting with state machines in Rive and created a simple “mystery box” animation. I split it into two timelines: one for the closed box state and one for the open box state.

What I want is for the box to switch from closed to open when I click on it. I set up a boolean input and added an “open box” listener on Click (so if the boolean is true, the box should open). However, when I click, nothing happens.

Am I misunderstanding how this setup should work? Could someone point out what I might be doing wrong?

Thanks in advance! /