On this page |
There are several ways to cycle or repeat animation in Houdini - through channel extrapolation, functions, the dopesheet and motion effects.
Channel extrapolation ¶
The simplest way to cycle animation is to set the extrapolation option on a channel:
-
Add the parameters that you want to cycle to the channel list.
-
In the channel list, select the parameters you want to cycle and click on the selected parameters.
-
Choose Channels ▸ Extrapolation and change the extrapolation mode to Cycle or Cycle Offset.
or
Choose Channels ▸ Extrapolation ▸ Before First Segment or Channels ▸ Extrapolation ▸ After Last Segment to repeat the animation before the first segment or after the last segment of the animation.
or
Choose Channels ▸ Channel Properties or use the Alt + E hotkey to bring up the Edit Channel Properties window. In the Before and After columns, choose Cycle or CycleOffset.
Functions ¶
To cycle the first 25 frames through the remaining 125:
-
Add the parameters that you want to cycle to the channel list.
-
Set a keyframe at frame 125 in the graph view of the animation editor.
-
Select the channel segments from frame 25 to 125 by dragging in the graph.
-
In the Function field below the graph, choose
cycle()
orcycleoffset()
from the drop-down menu.
Tip
cycle()
will continue from the starting value of your channels.
cycleoffset()
will continue from the last value of your channels.
Dopesheet ¶
If you want to cycle the animation and create keyframes for the cycle, use the dopesheet in the animation editor. To cycle and add keyframes from the first 25 frames through the remaining 125:
-
Add the parameters that you want to cycle to the channel list.
-
In the animation editor, switch to the dopesheet view.
-
Select frames 1 to 25 (inclusive) in the All Displayed row by dragging.
-
In the animation editor Edit menu, choose Copy.
-
Select frames 26 to 125 (inclusive) in the All Displayed row.
-
In the Edit menu, choose Paste Special ▸ Cycle at Region Selection.
Motion Effects ¶
For more procedural cycling of animation, you can use Motion Effects.
-
Add the parameters that you want to cycle to the channel list.
-
click the playbar and choose Motion FX ▸ Cycle.