-
Link object to mixamo rig element, with switch
I have a rigged character from Mixamo that types on a keyboard, then moves to the mouse, then back to the keyboard. I have a keyboard set up for her to type on (it’s not important if she makes the keys move, fortunately), but I can’t figure out a way to make the mouse move when she reaches over and grabs it, and stop moving when she goes back to the keyboard. In After Effects I would have written an expression with a checkbox controller and then keyframed the checkbox on and off to make the mouse follow her hand when it’s active and stay where it was last when her hand moves away. Something like this:
if (checkbox = true) {
posX = handPos[0];
posY = position[1];
posZ = handPos[2];
[posX, posY, posZ]
}
else {position at last keyframe}It certainly seems like there should be a way to do this with xpresso and/or python in Cinema, but what elements do I need to be looking for and how do I need to set them up to make it work?
Thanks for your help!
Steve