amazon-sumerian-hosts icon indicating copy to clipboard operation
amazon-sumerian-hosts copied to clipboard

Interrupt currently playing animation to immediately play a new one?

Open roschler opened this issue 4 years ago • 1 comments

I have noticed that if I try to play an animation with a host that is currently playing an animation, nothing happens. I can't play any new animations until the existing one stops. Is there a way to stop the existing animation so I can immediately play a new one?

Also, a giant thank you for creating this library. I have used it to create an automated, animated improv theater that uses OpenAI's GPT-3 natural language generation system to create animated scenes in real-time based on scene suggestions. If you want to see an example of this, check out this video:

https://www.youtube.com/watch?v=QL4QQ5NsPL8

Again, thank you for such a well designed and innovative software library!

roschler avatar Jan 18 '21 23:01 roschler

Hey @roschler, thanks for showing us what you have used this library to make!

With respect to your question, are you referring to the GestureFeature.playGesture() animations? If so there is a force option that can be set in the call options. This will cause the animation to play regardless of any currently playing animations: https://github.com/aws-samples/amazon-sumerian-hosts/blob/mainline/src/core/GestureFeature.js#L537

jkerste avatar Sep 20 '21 23:09 jkerste