Where does "IK_zero [[Layer Name]]" apply to versions 16 and onward?

Rigging, animation, import/export of characters, props and cameras comprehensive tool set for After Effects.
Forum rules
Please read these rules and advices before posting.
  • Before you ask any question about a tool, to avoid duplicates, please:
    1. Search for a solution in the available documentation for the tools.
    2. Some video tutorials and quicktips are available.
    3. You can make a search to see if your question has already been asked.
  • Thank you for giving a detailed and precise title to your topics, to help searching in the future.
  • We're very few people to manage this forum, please be patient if we're a bit long to answer.
  • Don't hesitate to answer to other people's questions! The goal of this forum is not only to have the Rainbox team answer users' questions, but to have everyone sharing and helping each other.
  • Finally, please always be polite, and keep in mind that all we want is sharing techniques and knowledge, helping each other.
Post Reply
Posts: 1
Joined: Mon Apr 29, 2019 11:36 pm

Where does "IK_zero [[Layer Name]]" apply to versions 16 and onward?

Post by bgiulini » Tue Apr 30, 2019 12:21 am

Hi! I'm somewhat new to DUIK tools, and my first experience using it was 16.0.11. Naturally, it's been tricky to follow tutorials that use the old layout and such. My question comes from a tutorial that has to do with emulating foreshortening. Using body parts across different layers, he creates a number of points based on the Puppet Pin tool, and then parents the position of the Wrist Pin to a Slider within the Controller layer. https://vimeo.com/105302568 (Skip to 9:44)

A specific part of expression has been giving me an error, and that's where he calls upon "IK_zero Elbow_Pin." He mentions it's something DUIK creates as opposed to the actual layer, but the code is wildly different in my version and writing it verbatim gives me a "missing or does not exist" error. Since I couldn't find a lot of mention of this IK_zero thing anywhere, I was hoping someone could explain/clarify its role, and how it might apply differently to DUIK 16. The expression by default is:

var ctrl = null;
var result = value;
try { ctrl = effect("IK")(1); } catch (e){ value };
if (ctrl != null)
result = ctrl.effect("IK | Wrist_Pin")(36).value;

And what I'm trying to achieve is some equivalent of:

FS = thisComp.layer("C | Wrist_Pin").effect("FS")("Slider");
posX = thisComp.layer("IK_zero Elbow_Pin").transform.position[0];
posY = thisComp.layer("IK_zero Elbow_Pin").transform.position[1] + FS;
[posX, pozY];

Post Reply