motion capture and scripting

hey guys

having trouble with some mocap files.
ive got some scripts that are controlling the rotation and position of my ‘head’ with my webcam.
now when i drag my ‘head’ object on to my head bone of the mocap file, it seems to be ignoring the local.transform lines and just moving and rotating the ‘head’ object according the variables its getting from the webcam contoller.

any ideas on how to get it sticking to the head bone of the mocap file?

Is the animation supposed to play normally but then be overridden by the webcam input when it occurs? You can override the position of an animated object by changing its position in the LateUpdate function (ie, after the effects of the animation have already been applied).

If this is not what you mean then can you give some more detail and perhaps some code to illustrate?