Search Unity

Changing position of an element that is being animated

Discussion in '2D' started by Runetass, Nov 16, 2014.

  1. Runetass

    Runetass

    Joined:
    Jun 4, 2013
    Posts:
    16
    Hey.
    Does anyone here know how to approach this?

    I have a walking animation, using Puppet2D with inverse kinematics. In it, the head has no keys, and apparently I'm able to interact with the head IK through code, which is great.
    But, if I wanted to do this with an object that does have keys in the animation, they would fight, frame by frame, code vs animation.

    Is there any way to override what's happening to this object in the animation, and let its position be altered by a script when I tell it to?

    Here's what (well, one of the) I want to do:

    -Let a walk cycle animate what's necessary to look good (like swinging hands).
    -During a certain key press, let mouse Y position control the height of a hand IK.

    I have many similar functions kind of dependent on an approach that will work in puppet land. Any suggestions?
     
  2. Runetass

    Runetass

    Joined:
    Jun 4, 2013
    Posts:
    16
    TheWarper likes this.