Home Website Youtube GitHub

How to setup a head aim ctrl?

I am trying to add a head aim ctrl. However I keep getting cycle errors since the head and neck have space switches.

If you were to use the biped template, what postBuild script would you run to set something like this up?

This is basically how I do it:

Add a control_01 control under the neck. This is the node that will aim towards the aimer. The head should not be parented under it, or it will cycle. (I use basic control_01 nodes for my neck and head, so the head/neck guide that is combined might be harder to setup.)

Add an aimer control for the head, forward near the eye aim. At the same translateY as the aim node.

And then add an upvector control too, above the head. Also not parented under the head. Parent it under the chest or neck. Basically set it all up so that node would aim like you want your head to aim.

And then I guess this is the trick to avoiding the cycle: In the guide, add that aim control_01 as an additional space switch for the head.

In a post script:

  • add the aim constraint.
  • add a condition node (or equivalent) so when it is switched to the aim space switch, the head aimer control visibility turns on.

I started experimenting with a similar chest aim too, for certain types of characters.


Downside. Since this is a choice between spaces, this won’t work if you want an aim for every one of your space switches. If you want aim plus rotation isolation. But maybe it would work if you add a space switch to the upvector object too…? And then link the two space switches.

2 Likes

Thank you Chris

these post scripts * add the aim constraint.
"

  • add a condition node (or equivalent) so when it is switched to the aim space switch, the head aimer control visibility turns on.
    "
    could y post how the python code should look like?