Help with Handle COMP

Hi everyone,
I’d like to ask for some help with using the Handle COMP.
My problem is controlling a moving head light to point toward a moving target.
The light has a base on which a support is mounted that can rotate on itself by 540 degrees (PAN), and on this support, a lamp is mounted that can tilt from -135 to +135 degrees (TILT).
The light is mounted with its base on a vertical wall, and the target moves in the space in front of the lamp in three dimensions.
I tried building a chain of Bones with various constraints, but I couldn’t manage to simulate the PAN as a Twist.
Then I discovered the Handle COMP and tried following the (unfortunately quite lacking) instructions in the documentation.
I created a chain that more or less represents my light with the target, but I have two issues:

  1. the chain occasionally loses the target and I can’t understand why
  2. when the target moves to the -X side of the space, the rotation of the last bone locks up, even though the Y rotation limit is set to -180 180 or is simply turned off.
    I’ve attached the patch. I’m definitely doing something wrong, but I can’t figure out what from the documentation.
    Can anyone help me, please?
    bonesHandle.6.toe (6.9 KB)

Hello, the Handle IK solver hasn’t been used in a number of years, but I notice target2 is [not] pointing to anything in your case.
When I delete the node entirely, the jumping stops, if that helps.
Not sure if it works as intended in that setup though.
Cheers.

Hi Rob, thank for the reply, but if I delete the handle node as yo8u said, the target is always reached, but the first node rotates on 3 axis, I need it to rotate just in 1.
My goal is to simulate PAN and TILT of a LED moving head.
I tried also with bones and standard IK, but I cannot find a way to let the first bone rotate like the Twist option in handle.
Probably the solution is very easy once you know how to place hanfles or bones, can you please help me?
Thank you
Simone

It seems I found a way to simulate with the stantard IK. Now I would like to understand how to claibrate dampening, damp angle and rolloff, any advise to find some example?
Thnk you

Hi Simplo.
I’m glad you got it working using the standard IK, as honestly, the handle+target method is much less deterministic and somewhat finicky to get working reliably.

In terms of the calibration Im afraid I dont have any examples off hand as these functions haven’t been actively improved in quite a while.

Hi Rob, the Bone system seems to work, but often it rolls from 180 to -180 and it is not usable in reality just because my heads cannot rotate instantly.
I’m stucked just because I have this kind of rotation randomly,
I think I could fix the problem if the bones can rotate continuosly from 180 to -181 (and over) instead of 180 to -179, just becasue my head can rotate from 0 to 540 just to prevent ithis problems.
Any idea? I also saw that the IK does not have methods or properties exposed.
Do you hane any other solution even if not using IK?
Thnk you in advance and excuse my bad english.

For IK bones are you using the twist connector?
Kinda hacky, but what if you examine the values every frame with a Frame execute DAT and adjust accordingly?
Do you have a very simple example with your new setup showing the problem?