Tools / TumbleRig / Utilities / Nodes

Apex Loop Animation

Repeat a character's Scene Animate keys: animate one cycle and get as many as you want.

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

Overview

Wire this node below the Scene Animate that holds the cycle, pick the character and set how many times it repeats. The repeats are real keys with the same handles as the cycle, so they play in Animate, in Scene Invoke and on the farm. Change the cycle in the Scene Animate above and every repeat follows.

TIP

Edit the cycle above this node and add variations below it. With Write To on New Layer, a Scene Animate below keeps its own layers on top of the loop, and changes to the cycle still reach it.

Parameters

Character

Whose keys to loop. The menu lists the characters with keys and their channel count.

Read

Base Animation loops the character's own keys, handles and all. As Played loops what plays: the base with every animation layer on the character flattened in (a Live Record take, an Animation Noise bake, a copy on a layer), as one key per frame. With As Played, write to a New Layer of type Override: into Base Animation the layers would play a second time on top of the loop.

Controls

Which controls to loop: space separated patterns over control names, ^ to take away (<b>arm</b> ^<b>_ik</b>). The count says how many controls and channels you have picked. Everything else keeps playing its own keys.

Channels

Which channels of those controls, by full name: * picks all of them, Main_t[xz] picks Main_tx and Main_tz.

Translate, Rotate, Scale, Sliders

Loop only these kinds of channel. Sliders are controls that are not transforms.

Cycle

From Keys repeats from the picked channels' first key to their last. Frame Range repeats from Start to End, for looping the middle of a longer take.

Last Frame

Repeats the First: the cycle's last frame is a copy of its first pose, as a hand-keyed cycle usually ends, so frames 1 to 25 loop as 24 frames. Own Pose: the last frame is a pose of its own and the first pose comes again a frame later, as in a motion capture or baked cycle (Mocap to Controls), so frames 1 to 25 loop as 25 and frame 26 is frame 1's pose. With Travel, a channel that keeps going moves on by a frame of its own motion there. The cycle label suggests Own Pose when most moving channels end away from their first value, and a new node picks it by itself for such keys. Ping-Pong turns at its ends and does not use it.

Mode

Cycle repeats the keys. Ping-Pong plays them forward and then back.

Repeat

Count uses Before and After, the number of cycles to add on each side. Until Frame adds cycles after the original up to the frame you give, and stops there, partway through a cycle if it has to.

Travel

Channels that keep going each cycle instead of returning to their start, such as a walk's root: Main*. The label below names channels whose start and end values differ, because without Travel those snap back at every seam.

Time Offset

Frames to slide the whole loop by.

Write To

New Layer puts the loop on an animation layer above the character's keys, which stay as they are, and changes to the cycle keep reaching a Scene Animate below. Base Animation writes the keys into the character's own, and a Scene Animate below that you key in then saves its own copy, so later changes stop reaching it. Choosing New Layer turns on Inherit Layers in a Scene Animate below that would drop the layer.

Layer Name

The layer's name in Animate's Animation Layers pane.

Layer Type

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

Blend

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

Fade In, Fade Out

Frames to ease the layer in from the loop's first frame and out to its last, so the character's own keys play outside the loop. With both at 0 the layer holds its first and last values for the rest of the shot.

Inputs and outputs

Inputs

Scene Stream

The output of a Scene Animate holding the keys to loop.

Recipes

Version notes

  • Loop Animation 1.1: a line under Repeat says how far the loop reaches (4 more cycles, to 1006), and End = Start points at Last Frame: Own Pose, which holds that frame
  • Loop Animation 1.1: Last Frame: Own Pose loops a mocap cycle on all its frames (keys 1001-1025 loop as 25, 1026 is 1001's pose), so SideFX's walk no longer skips a pose at every seam
  • 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)
  • Loop Animation 1.0 (th::apex_loop_animation): repeat a character's Scene Animate keys, as real keys, on a layer by default