emilianavt / VSeeFaceSDK

The VSeeFace SDK for Unity is used to export models in the VSFAvatar format.
149 stars 10 forks source link

VSF_SetAnimatorBool Not running. #45

Open YUNISAMA opened 5 months ago

YUNISAMA commented 5 months ago

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 ?

emilianavt commented 5 months ago

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.

YUNISAMA commented 5 months ago

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.

emilianavt commented 5 months ago

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.