On this page | |
Since | 18.5 |
Overview ¶
This CHOP node time-warps its first input (the source clip) using its second input (the reference clip) as a reference. The node warps the motions in the source clip so that it more closely resembles the motions in the reference clip. The node does this by sampling the set of points in the source.
Interpreting motion data inputs ¶
If the Motion Data parameter is enabled, the inputs are treated as three-dimensional motion data and this chop will behave very similarily to the Dynamic Warp SOP.
Motion warping methods ¶
When Warp Method is set to “Synchronize Entire Clip”, the node attempts to synchronize the source’s clip with the reference’s clip for the entire length of the output. It does this by sampling the source so that, for the entire length of the output, the clip is as similar to the reference’s clip as possible. This method works best when the two clip are similar to begin with. For example, it would be excellent at warping two walk animations so that they walk in stride.
This method is based upon the Dynamic Time Warp algorithm.
When Warp Method is set to “Create Similar Motions”, the node attempts to warp each section of the source’s clip so that it resembles some section of the reference’s clip. In addition, it lets the you define the length of the output.
To highlight some of what this method can do well, a few examples are:
-
If you have a reference animation that is a single punch animation and a source that has many, it will warp the speed of each punch in the source to match the speed of the reference punch.
-
If you have a walk animation that you use as both the source and the reference, it will make each step take the same amount of time.
-
If you shorten the clip length using a single animation as both the source and the reference, it will maintain the natural timing of each motion while accelerating periods of inactivity.
This method is intended for use with motion data and is based upon the Guided Time Warp algorithm.
Motion data output modes ¶
This CHOP has three output modes:
In “Channels” Mode, the output will be the warped channels of the source.
In “Warp Index Curve” Mode, the output will be a single channel which represents the warp. Each point on this curve is the frame index of the source needed to achieve the warp. This curve can be used by the Warp CHOP with Method set to “Index Control”.
In “Warp Rate Curve” Mode, the output will be a single channel which represents the warp. Each point on this curve represents the sampling rate of the warp at that point. This curve can be used by the Warp CHOP with Method set to “Rate Control”.
Parameters ¶
Channels ¶
These parameters are used to declare which channels (if any) represent motion data.
Interpret As Motion Data
Determines whether or not the input clips should be interpreted as three dimensional motion data.
If this is on, all joint translation and locomotion translation channels must be set. Additionally, this chop will behave very similarily to the Dynamic Warp SOP.
Joint Translation
The input channels which should be treated as x, y, and z translation channels.
Each of these sets must be the same size.
Locomotion Translation
The three input channels which should be treated as the x, y, and z translation channels for the joint which determine the locomotion of the object (the node that has the translation channels that moves it forward in space).
Each of these channels must be the selected from the sets defined by Joint Translations.
When Warp Method is set to “Create Similar Motions”, the acceleration of these channels will be taken into account.
Locomotion Rotation
The three input channels which should be treated as the x, y, and z rotation channels for the joint which determine the locomotion of the object (the node that has the translation channels that moves it forwards in space).
These channels must not be members of Joint Translation.
If any of these parameters are set, all three must be.
If these are set, then the motion of each joint will be compared relative to the position and rotation of the locomotion joint.
Warp ¶
These parameters are used to alter the settings of the output and warping algorithms.
Output Method
Determines what the output of the node will be.
Channels
The output will be the warped versions of the source channels.
Warp Index Curve
The output will be an Index Control Curve. This curve can be used with a Warp CHOP with Method set to “Index Control”.
Warp Rate Curve
The output will be a Rate Control Curve. This curve can be used with a Warp CHOP with Method set to “Rate Control”.
Warp Method
Determines which method will be used to warp the source clip to the reference clip.
Synchronize Entire Clip
The source will be warped so that it is synchronized with the reference. For this method, the reference is treated as a looping clip.
Create Similar Motions
Each motion of the source will be warped so that it appears similar to some motion in the reference.
Max Step
Bounds the maximum number of consecutive frames of the source that can be skipped at once.
This parameter can only be disabled if Warp Method is set to “Synchronize Entire Clip” and Interpret As Motion Data is off.
Max Stall
Bounds how many times the same frame can be repeated. If Motion Data is enabled, then instead of repeating frames, they will be interpolated.
This parameter can only be disabled if Interpret As Motion Data is off.
This parameter is only available when Warp Method is set to “Create Similar Motions”.
Scale Source Length
Multiplies the length of the source before warping begins.
This also factors the rate of the output.
This parameter must be greater than 1 if you wish to slow down sections of the source using the Create Similar Motions method.
If this is set to x, it is equivalent to resampling the source using a Resample CHOP with Method set to “Same Rate, New Interval” and Sample Rate set to x times the rate of the source.
This parameter is only available when Warp Method is set to “Create Similar Motions”.
Nearest Neighbors
The number of motions in the reference each motion in the source will be matched to.
This parameter is only available when Warp Method is set to “Create Similar Motions”.
Output Length
Determines how the length of the output is specified.
By Time
The length of the warp is specified in time.
By Length Scale
The length of the warp is specified as a multiple of the length of the source.
Optimize Length
The length of the warp is determined by the warp method. This will attempt to find the best possible warp from the source to the reference.
This parameter is only available when Warp Method is set to “Create Similar Motions”.
Time
The length of the warp in time.
This parameter is only available when Channel Length is set to “By Time”.
Length Scale
The length of the warp specified as a multiple of the source length.
This parameter is only available when Channel Length is set to “By Length Scale”.
Common ¶
Some of these parameters may not be available on all CHOP nodes.
Scope
To determine the channels that are affected, some CHOPs have a scope string. Patterns can be used in Scope, for example *
(match all), and ?
(match single character).
The following are examples of possible channel name matching options:
chan2
Matches a single channel name.
chan3 tx ty tz
Matches four channel names, separated by spaces.
chan*
Matches each channel that starts with chan
.
*foot*
Matches each channel that has foot
in it.
t?
The ?
matches a single character. t?
matches two-character channels starting with t.
blend[3-7:2]
Matches number ranges, giving blend3
, blend5
, and blend7
.
blend[2-3,5,13]
Matches channels blend2
, blend3
, blend5
, blend13
.
t[xyz]
[xyz]
matches three characters, giving channels tx
, ty
and tz
.
Sample Rate Match
The Sample Rate Match options handle cases where multiple input CHOPs’ sample rates are different.
Resample At First Input’s Rate
Use the rate of the first input to resample the others.
Resample At Maximum Rate
Resample to the highest sample rate.
Resample At Minimum Rate
Resample to the lowest sample rate.
Error if Rates Differ
Does not accept conflicting sample rates.
Units
The units of the time parameters.
For example, you can specify the amount of time a lag should last for in seconds (default), frames (at the Houdini FPS), or samples (in the CHOP’s sample rate).
Note
When you change the Units parameter, the existing parameters are not converted to the new units.
Time Slice
Time slicing is a feature that boosts cooking performance and reduces memory usage. Traditionally, CHOPs calculate the channel over its entire frame range. If the channel needs to be evaluated every frame, then cooking the entire range of the channel is unnecessary. It is more efficient to calculate only the fraction of the channel that is needed. This fraction is the Time Slice.
Unload
Causes the memory consumed by a CHOP to be released after it is cooked, and the data passed to the next CHOP.
Export Prefix
The Export Prefix is prepended to CHOP channel names to determine where to export to.
For example, if the CHOP channel was named geo1:tx
, and the prefix was /obj
, the channel would be exported to /obj/geo1/tx
.
Note
You can leave the Export Prefix blank, but then your CHOP track names need to be absolute paths, such as obj:geo1:tx
.
Graph Color
Every CHOP has this option. Each CHOP gets a default color assigned to it for display in the graph, but you can override the color with the Graph Color. There are 36 RGB color combinations in the palette.
Graph Color Step
When the graph displays the animation curves, and a CHOP has two or more channels, this defines the difference in color from one channel to the next, giving a rainbow spectrum of colors.
Inputs ¶
First Input
This input is the source.
Second Input
This input is the reference.
The names of the reference’s channels must match the names of the source’s channels.
See also |