Tools / TumbleRig / Utilities / Nodes

Apex Copy Animation

Copy one character's animation from another Scene Animate into this stream, for all of its controls or only the ones you pick.

Access
TumbleTrove+
Node version
1.2
Package
TumbleRig
Houdini
22.0+
What you can make with it

Overview

Wire the stream you keep working in into the first input and the output of a Scene Animate that has the animation you want into the second. Pick the character in each, narrow Controls if you only want some of them, and Scene Animates you add after this node show the copied animation.

The copied channels replace that character's channels for the picked controls that the second input keys. Its other controls (including picked ones the second input does not key), and every other character, stay as they were in the first input.

Or set Write To to New Layer: the copy goes on an animation layer above the character's own keys, with a Blend amount, and those keys stay as they are underneath.

NOTE

A Scene Animate keeps its keys per character, and when it holds any key for a character it replaces that character's incoming keys whole. That is why wiring one Scene Animate into another loses the first one's animation. A Scene Animate below this node that keys the same character replaces keys written to the base animation too, and the node warns when it finds one. A copy on a New Layer stays. A Scene Animate below that was saved before the layer existed needs Inherit Layers on, or it drops the layer: choosing New Layer turns that on, and the node warns about one you wire in later.

Parameters

From Character

The character in the second input whose keys are copied. The menu lists the characters with keys and their channel count.

To Character

The character in the first input that receives them. It can have a different name, for example when the shots use different versions of the character.

Read

Base Animation copies the From character's own keys, handles and all. As Played copies what plays: the base with every animation layer on that character flattened in (a Live Record take, an Animation Noise bake, a loop on a layer), as one key per frame.

Controls

Which controls to copy: space separated patterns over control names, ^ to take away (<b>arm</b> ^<b>_ik</b>). * copies all of them. The count says how many controls and channels that matches. Pick chooses from a list of the character's controls.

Channels

Which channels of those controls to copy, by their full name: * copies all of them, Main_t[xz] copies Main_tx and Main_tz, ^*_rz leaves out one axis. Pick chooses from a list. A channel you leave out keeps the first input's keys.

Translate, Rotate, Scale, Sliders

Copy only these kinds of channel (sliders are controls that are not transforms), for example rotations only so a pose comes across but the placement stays.

Other Controls

Keep the first input's keys for the controls you do not copy, or Clear them so the character carries only the copied animation.

Time Offset

Frames to shift the copied keys by, for when the shots start on different frames (copying a shot that starts at 1001 into one that starts at 1: -1000).

Write To

Base Animation writes the copied keys into the character's own keys. New Layer puts them on an animation layer above those keys, which keep their values. A copied channel the character has no keys for gets a key at the rig's rest value, so the Blend has something to blend from. Choosing New Layer turns on Inherit Layers in any Scene Animate below that would drop the layer.

Layer Name

The layer's name in Animate's Animation Layers pane. Two characters copied to the same name share one layer, and the last node's Layer Type and Blend win.

Layer Type

Override moves the copied channels toward the copied values by the Blend amount. Additive adds the copied values to what is underneath, so it suits keys that were made as offsets.

Blend

The layer's weight, from 0 (no effect) to 1 (all of it).

Inputs and outputs

Inputs

Scene Stream

The stream you keep working in (a Scene Animate output, or Scene Add Character). Its keys are kept except for the controls you copy.

Animation From

The output of the Scene Animate that has the animation to copy.

Recipes

Version notes

  • Node cache before every Output of 96 assets: a reopened scene reads a node's result without cooking what is above
  • Copy Animation 1.2 and Loop Animation 1.1: Read, Base Animation or As Played
  • Switches that read geometry become Switch-If tests: 9 more assets (sweep done but Deform Mask)
  • Copy Animation 1.1: New Layer works on keys made in Animate: Blend no longer collapses the character, a saved Scene Animate below no longer drops the layer
  • Copy Animation 1.1: Channels pattern and New Layer (Override or Additive, Blend)
  • Copy Animation 1.0, Apex Skinning 2.0: the second input is optional, so a fresh node no longer stops at Not enough sources
  • Copy Animation 1.0: orange port dots (Scene Animate stream) on both inputs and the output, in the index Extra info and the inner network; the build script sets them
  • Copy Animation: keep input 1's keys for controls input 2 does not key; test with both characters keyed
  • Copy Animation 1.0 (th::apex_copy_animation): copy one character's Scene Animate keys from another stream, all controls or picked ones