Animating hand models.

Hi all :slight_smile:
I’m trying to animate the hands I created in blender and imported to Unity and I’m using the XR integration toolkit. As you can see in the video I’m reading the input from the controller and setting it in the blend tree but I can’t see the animations in play time.
Maybe someone could advise ?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;


public class HandsController_2 : MonoBehaviour
{
    [SerializeField]
    private InputActionProperty pinchAnimationAction;
    [SerializeField]
    private InputActionProperty gripAnimationAction;
    private Animator handsAnimator;
    private string gripParameterName = "Grip";
    private string triggerParameterName = "Trigger";


    private void Awake()
    {
        handsAnimator = this.gameObject.GetComponent<Animator>();
    }
   
    void Update()
    {
        float triggerValue = pinchAnimationAction.action.ReadValue<float>();
        handsAnimator.SetFloat(triggerParameterName,triggerValue);


        Debug.Log(triggerValue);


        float gripValue = gripAnimationAction.action.ReadValue<float>();
        handsAnimator.SetFloat(gripParameterName, gripValue);


    }
}

I personally used this guide with success:

Hi tried to fallow this tutorial without success :frowning:
I think I have a problem with my Animator.
In this video, you can see that when I change the animation parameters, I can see the animation preview but in play mode (in this video it’s not in my “VR mode” of the project) it doesn’t work properly…what am I missing ?

https://www.youtube.com/watch?v=kSUAGUBr-fM

Did you watch the full video? He goes over the looping issue in the troubleshooting section

Yes I watched it, but my problem is different, I can’t see the animation at all it’s not just the looping problem.

It does show in scene view, right?
Just not game view?
Maybe you are viewing the wrong hand in game view?

In game view (With headset on) I can see the hand moving with the controller, but pressing grab/trigger only change the parameters in the blend tree and I can’t see the animation.

What?
Check if the controllers and animations are properly linked and test if the code itself worked