'Control two skeletons/meshes with one control threejs

Needing some help. I have 2 models with the same bone structure but different meshes. The bones of the meshes overlap one another. I'd like to add pose controls that would control both meshes at the same time. I've added a code example.

The goal would be to attach a control on each merged/grouped section of the arm but have the higher controls, control the lower. Clavicle>upper arm>forearm>hand. I'm not sure if merging would solve this. Thank you in advance.

Object1

clavicle1 -upperarm1 --forearm1 ---hand1

Object2

clavicle2 -upperarm2 ---forearm2 ---hand2

Object1.getObjectByName('clavicle1).add(Object2.getObjectByName('clavicle2));

Object1.getObjectByName('upperarm1).add(Object2.getObjectByName('upperarm2));


Object1.getObjectByName('forearm1).add(Object2.getObjectByName('forearm2));


Object1.getObjectByName('hand1).add(Object2.getObjectByName('hand2));


Scene.add(Object1);

Control.attach(Object1.getObjectByName('forearm1));
Scene.add(control)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source