I'm trying to create a set of animations for two human characters which will then be exported into Unity. Ideally this import will be as a single fbx that includes the two character models and all animations, which I can then use to trigger an animation by name (e.g. "shake_hands") which will then trigger the hand shake animation on both characters.
These animations need the characters to interact directly (e.g. shaking hands etc), so I assumed that the best way to ensure the interactions worked well would be to animate both characters in a single scene in Blender. I'm new to rigging, and Rigify looked like a powerful but simple tool, so I decided to use that. I heard about problems with generating two rigs in the same file, so I created the two models (for the two characters) in different files. I created a new file and appended my two models to it (by specifically going in to the Object folder and grabbing the meshes and rigs rather than going by the scene route). I had experimented with animating a single character first of all, so one of the armatures came with some animations already. By that I mean one armature had some actions set up for it, with keyframes for bones in that armature.
I assumed that when I thought about "an animation for two characters" what that really meant was "an action that has keyframes for both armatures". This means that I assumed that animating the second character would be as easy as adding keyframes for the second armature to the existing action. However, when I started trying to do so by putting the second armature in Pose mode, opening the action editor, going to the existing action and adding keyframes for bones, the bones of the first armature took on the poses that I set for the second armature, overwriting the animation. I assumed this was because the animation (the dope sheet specifically) refers to bones by names, and thus because Rigify generates the same bone names each time you generate a rig, the keyframes ended up being assigned to both copies of the bones with the same names.
This seemed weird, but I set about renaming the important bones of the second armature, so I could keyframe them separately, but now the Rigify UI started to fail, as tools like "Snap IK to FK" etc relied on bone names that were no longer there. I considered merging the two rigs into a single armature out of pure frustration, but that would have been even worse to work with.
Am I misunderstanding some part of the process? Is there a reason why noone on the internet seems to be talking about having this problem? The whole time I was working on this I couldn't shake the feeling that there has to be an easier way: so is there?