Can't Animate Collider, stays stuck

So, when my player crouches, I wanted to animate its capsule collider to shorten with it. I’m using a mixamo crouch animation and initially, the collider animation was working fine. But I do not know how, it just decided to stop working, now I cant modify the collider size through the animation window, it just remains in the previously assigned values. Nor can I disable or enable it through the animation window. from my understanding of my own code attached to it, there is no mention of collider and I’m using the default editor layout. If you could help, it be great.
I cannot alter it when the recorder is on.

What you can do, is set capsule collider height and y pos to wanted value, when you tell you character to crouch, and reset it when character get up.

Like this

CapsuleCollider col = yourObj.GetComponent<CapsuleCollider>();
col.height = 1.2f;
col.center.y = 0.6f;

Just to be sure, you haven’t got the object you’re trying to animate set to static have you? This is a mistake that I’ve made a few times - sorry, just noticed that you said that you “CAN’T” instead of “CAN” modify the collider through the animation window, so there is less chance this is the issue, but I’ll leave it here just in case.

Also, a game object cannot re-activate itself. Just in case you are attempting to deactivate and reactivate the game object itself through animation. But, if you are just disabling and re-enabling the collider component attached to the object that will work fine.