I’m trying to make a filter that detects some expressions and disappears them based on the emotion or trigger. Could you help if the concept is wrong or if there is another better way to do it?
this is my code to detect if the mouth is open or not
// Use this for initialization
function onStart() {}
// Update is called once per frame
function onUpdate() {}
function onTriggerStateChanged(triggerType, state, faceId) {
if (Utility.TriggerType.MOUTH_OPEN_SENSITIVE === triggerType) {
Utility.changeParameter("Node_3", "", "enabled", false);
Debug.log("open");
return;
}
if (Utility.TriggerType.MOUTH_CLOSED_SENSITIVE === triggerType) {
Utility.changeParameter("Node_3", "", "enabled", true);
Debug.log("close");
return;
}
}
However, when opening the mouth, 2 events happen quickly, but nothing happens in the node.
Can anyone help or suggest another concept?