5
$\begingroup$

Just as the title says, imagine you are building a glass sliding door,but you need to move both parts in the oppsite direction, but that creates 2 actions, is it possible to fuse these two into one? To be neater.

$\endgroup$

1 Answer 1

11
$\begingroup$

Using armature for this may be a good solution.

  • CREATING AN ACTION FROM SCRATCH

    Add an Armature-->Single Bone, duplicate it in Edit Mode (Shift+A) and place each bone on each separate object. Select the first object, then the second one and finally the Armature in Object Mode, then press Ctrl+P-->With Automatic Weights.
    enter image description here

Keyframe the movement for each bone and make an action of it in NLA Editor. You now have one action for two separated objects.
enter image description here

  • USING THE EXISTING ACTIONS

In this case I've got three objects with three different animations/actions. I'll merge these into one single action using an armature.
enter image description here enter image description here

Add Armature-->Single Bone and snap it to the origin point of the first object. Snap the cursor to the second object in Object Mode (Shift+S-->Cursor to Selected), then select the bone, enter Edit Mode and press Shift+A. It'll snap next bone to the second object. Repeat the same process with the third one as pictured below. Rotate all the bones in Edit Mode by 90 degress so they all stay horizontal.
enter image description here

In Pose Mode select the bone, go to the Bone Constraints header and give it a Copy Transforms constraint. Set the bones targets to the coresponding objects as pictured below. Now the bones are following the objects' animations.
enter image description here

Select all bones in Pose Mode (Shift+RMB), then go to Object Mode-->Tool Shelf (T)-->Animation-->Bake Animation. Check all the checkboxes in a window there, and set the Bake Data type to Pose. After clicking OK the new action in a NLA Editor'll appear. enter image description here enter image description here

Now you have the copied movement of the objects baked into the keyframes of the armature, so you don't need the objects' animations anymore. Delete each one in a Dope Sheet Editor. enter image description here

Finally being in Object Mode select all the objects, then the armature and press Ctrl+P-->Set Parent-->With Automatic Weights. Push down an action in NLA Editor to create an action block on a strip.
enter image description here

$\endgroup$
4
  • $\begingroup$ For some reason it doesnt work for me? giphy.com/gifs/xUPGcySH21Hxjpugfu/fullscreen $\endgroup$
    – Sinci1
    Jun 1, 2017 at 11:24
  • $\begingroup$ That's because you've added two separate armatures. You have to create just one. Add the second bone with Shift+A being in armature's edit mode, not object mode. I've updated the first .gif to make it clearer. $\endgroup$
    – Paul Gonet
    Jun 1, 2017 at 12:49
  • $\begingroup$ too bad u cant add armatures to cameras $\endgroup$ Sep 14, 2022 at 4:43
  • $\begingroup$ @Yeets You can probably mitigate that with a constraint tied to a bone. Not that I've tried it, but it's how I would go about doing it. Failing that, you could also probably use a basic driver. $\endgroup$ Oct 8, 2023 at 17:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .