How to Stop Looping Face Animation?
I'm using the face trigger template.
I have a 2D animation that triggers when mouth is open. I put in on loop "-1"
How do I stop the animation from continuously playing when the mouth is closed? I only need it to play in loop when mouth stays open, but stop when mouth is closed.
Thanks in advance.
Hey Cyrene! I made modifications to the FaceTriggerAnim script in the Trigger template. Those modifications can be found here:
https://pastebin.com/VMXxPTz2
Take the contents of the that and replace all of the code in FaceTriggerAnim.js in the Trigger template. Once you do this, you should have a new stop trigger in addition to the start trigger. This will allow you to start on Mouth Open and stop on Mouth closed.
You are AMAZING and helpful as always! Thank you so much Travis!
Could I also use this to trigger an animation to play and stop? Say, if I had a gif I wanted to play above the user's head, could I trigger it to play with MouthOpen and then stop playing on MouthClose?
Hi Topher, yep that's how the script I gave Cyrene works! And yes, the FaceTriggerAnim script supports both 2D animation and 3D animation.
Hey,
I know I am late on this one, but is there a way using that script to make the opacity of a mouth triggered 2d animation to go fully transparent when the mouth closes instead of just pausing when the mouth closes?
Thanks
Hey Colin, sorry for the long delay here. I missed your question! Here's a modification to the script that allows a tunable alpha for the open and close mouth state:
https://pastebin.com/SpiR8mB1