Return to first frame in the default state?
I've been struggling with this for days. My original animation was a bit complex so I made a brand new animation with 2 states, each one with a timeline:
- Idle: Looping animation shows a green triangle that doesn't move.
- Hover: One shot animation that shows a red triangle spinning.
I have defined a Boolean input (isHover) and two transitions:
- From Idle to Hover with condition "isHover" = true
- From Hover to Idle with condition "isHover" = false
If I play the animation and click on the input when the animation is in the Hover state the triangle changes to green and the Idle state is active in the state machine visualiser. However the green triangle is in whatever position the red triangle was instead of going back to the Idle animation position.
I want the animation to return to the original state with the first triangle in the default position, this should be easy because it seems basic but I've seriously tried a million different things and can't make it work so any help would be appreciated.
You can see it here: https://rive.app/community/files/12687-24042-failed-test
State Machine:
Hi! Do you have a key in the idle state for the rotation and position of the triangle?
Turns out that you need to match all the keys in both animations for it to return to the default state keeping the original position.
Link to Pedro's answer in Discord: https://discord.com/channels/532365473602600965/1282953250110312522