Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Dan Ebbert’s IK expression, leveling the extremities

  • Dan Ebbert’s IK expression, leveling the extremities

    Posted by Theodore Vojik on September 12, 2024 at 6:19 am

    Hello everyone!
    I found Dan Ebbert’s IK expression and it works really well aside from the leveling of the extremities. The problem is that when I apply the anchorPoint expression to the position/anchor of the Transform effect, the anchor point of this effect is no aligned with the anchor point where the limb should be rotating. The rotation expression on the transform effect is working and the limb is leveled, but the anchor point is in a weird place.

    Would appreciate any help because this simple IK is exactly what I was looking for!
    Thanks a lot

    Link to Dan’s expression https://motionscript.com/design-guide/ik.html

    Brie Clayton
    replied 4 weeks ago
    3 Members · 7 Replies
  • 7 Replies
  • Dan Ebberts

    September 13, 2024 at 2:50 pm

    I’d like to help, but I don’t know what you mean by “leveling the extremities”. Maybe you could clarify.

  • Theodore Vojik

    September 14, 2024 at 8:29 pm

    Hey, thanks for your reply 🙂
    What I meant was that because the foot (the extremity) is parented to the lower leg, it is rotating with the lower leg – there need to be a counter-rotation of the foot to compensate it.

    Your solution in the article was to apply a transform effect, put the “anchorPoint” expression to both anchor and position properties of the effect, and another 2 lines expression to the rotation properties of the transform effect.

    Now the problem is that when I apply the “anchorPoint” expression to the anchor/position of the transform effect, the rotation axis is in a weird place and the foot is separated from the lower leg. The counter-rotation expression works well, but the counter-rotation axis is in a wrong place.
    I can attach a After effects file if that would be easier,
    Thanks a lot Dan

  • Dan Ebberts

    September 14, 2024 at 11:09 pm

    Yes, please attach the file.

  • Theodore Vojik

    September 15, 2024 at 7:50 am

    attaching file, the problematic layer is “shoes R” (I marked it in Fuchsia)

  • Dan Ebberts

    September 15, 2024 at 2:39 pm

    That’s strange. I’m not quite sure what’s going on, but if you turn off the 3 expressions on the Transform effect and use the Transform effect’s crosshairs to position its Anchor Point and Position directly on the layer’s anchor point, and then turn the Rotation Expression back on, you’ll get the leveling.

    Or, if you change the Transform effect’s Anchor Point and Position expressions to:

    toComp(anchorPoint)

    it works. I have no explanation at this point, but it will haunt me.

  • Theodore Vojik

    September 15, 2024 at 3:09 pm

    It works! Thank you very much, you’re a genius 🙂

  • Brie Clayton

    September 15, 2024 at 7:49 pm

    Thank you, Dan, for this solve!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy