Hi Cassius, thanks a lot!
Of course the rigs are not in the center… I had to change your expression to make it work, I added two sliders for adjust the position:
ref=comp(“HORSE”);
a=comp(“HORSE”).layer(“CHILD”).position;
b=100/thisComp.layer(“B | BRIGLIA | BRIGLIA_BOCCA”).transform.scale[0];
nx=a[0]-ref.width/2+effect(“X”)(“Slider”);
ny=a[1]-ref.height/2+effect(“Y”)(“Slider”);
[nx*0.69/b+(thisComp.width/2),ny*0.69/b+(thisComp.height/2)]
The mouth bone position is still a bit off, but less than before. I think it’s fine now, take a look at the result.
If you have some improvement, I’m all ears.
Luca