uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot
Apache License 2.0
770 stars 77 forks source link

Animation response #324

Closed brycelynch closed 2 months ago

brycelynch commented 2 months ago

Why aren't my animations firing off? I think I have it set up right. Is there another step I'm missing?

Screenshot 2024-08-20 at 12 21 47 PM Screenshot 2024-08-20 at 12 20 21 PM
uezo commented 2 months ago

Hi @brycelynch,

To autonomously use animation in a conversation, follow these steps:

  1. Create an Animator Controller with animation clips and transitions. (Maybe you've already done this👍)
  2. Define the mapping between the animation names and the corresponding values to trigger the transitions. See this example.
  3. Inform ChatGPT of the list of available animation names in the system prompt. See this example.
brycelynch commented 2 months ago

Thanks for the reply. This tool is awesome btw. :)

I believe I have that all set up correctly. I've been mostly borrowing from what you've done in the demo. For a sanity check, I used the demo scene and I get the same error that waving_arm is not registered -- I'm only testing this one animation to see how everything is supposed to work. I tried changing the name of the wave_arm animation thinking that might be the issue? Do you think it's because I've just renamed the animation to match the corresponding values in your example. I'm also using your system prompt. Here are some screen grabs:

Screenshot 2024-08-20 at 5 04 02 PM Screenshot 2024-08-20 at 5 05 32 PM
brycelynch commented 2 months ago

I think I figured out what I was doing wrong. I had turned off main.cs and that was what was causing the unregistered errors. Thanks again. :)