Procedural animation with IK in Unity 4

I’m new and possibly misunderstanding something about IK in Unity 4 (or in general).

Goal: Say I have an end-effector of an IK chain, like a hand, which i want translate back and forth - say in a sin() function along its Z axis.

I create a script on the node:

function LateUpdate () {

transform.Translate(Vector3(0,0,1) * Time.deltaTime);
}

and while the transforms are working…I do not get any animation.

Is this possible? Did I make a mistake? Id prefer not to make a “hand wave” cycle that is blended in.

cheers,
matt

You may have to place it in OnAnimatorIK() to get picked up properly. That would be my first test.

HTH