VSeeFaceSDK icon indicating copy to clipboard operation
VSeeFaceSDK copied to clipboard

VSF_SetAnimatorBool Not running.

Open YUNISAMA opened this issue 5 months ago • 3 comments

I searched for a long time, but couldn't find how to use VSF_SetAnimatorBool, VSF_SetAnimatorFloat, VSF_SetAnimatorInteger. I want to play another animation after playing an animation. I used Animator to do the animation, it works in UNITY but not in VSEEFACE after output. VSF_SetAnimatorBool does not generate the switch animation after I import AVATAR in VSEEFACE. Am I doing it wrong or is it not possible to use this ?

YUNISAMA avatar Jan 26 '24 21:01 YUNISAMA

Make sure that you are not trying to use the main Animator on the avatar. It gets overwritten by VSeeFace. You can use these components to control additional custom Animator components.

emilianavt avatar Jan 26 '24 23:01 emilianavt

Thanks, I made it to switch animations. But it's not what I was thinking, for example, I wanted to make it so that there's an animation after blinking, but it turns out to be an animation that keeps playing when you close your eyes. Do I need to use a different way? And VSF_SetAnimatorBool, VSF_SetAnimatorFloat, VSF_SetAnimatorInteger, is it possible to use only one of these three? I put two of them and it doesn't respond.

YUNISAMA avatar Jan 31 '24 15:01 YUNISAMA

But it's not what I was thinking, for example, I wanted to make it so that there's an animation after blinking, but it turns out to be an animation that keeps playing when you close your eyes.

I think this will be difficult to achieve. In theory it might be possible to use two VSF_Trigger components and nested disabled game objects where first a trigger enables the first when closing the eye, then a second is enabled when they are opened and another trigger disables both of them again while also enabling a VSF_SetAnimatorBool for an instant, that will play the animation. I suppose a third and fourth would then be needed to clean up and stop playing the animation again.

And VSF_SetAnimatorBool, VSF_SetAnimatorFloat, VSF_SetAnimatorInteger, is it possible to use only one of these three? I put two of them and it doesn't respond.

Multiple should be possible.

emilianavt avatar Jan 31 '24 21:01 emilianavt