float agentclipsample(<geometry>geometry, int prim, string clipname, float time, int channel_index)
float agentclipsample(<geometry>geometry, int prim, string clipname, float time, string channel)
Evaluates the clip at the given time and returns the value of the specified channel.
Returns zero if
clipname is not one of the agent’s animation clips,
prim is out of range,
prim is not an agent primitive,
channel_index is out of range, or
channel does not exist.
The name of the geometry file to reference. Inside Houdini, this may be
op:full_path_to_sop to reference a SOP.
The number of the input to reference. The first input is number
0, the second is
The primitive number.
The name of the animation clip.
The time (in seconds) to evaluate the clip at. If this time is greater than the clip’s length, it will be wrapped around.
Index of a channel in the animation clip, as returned by agentclipchannel.
Name of a channel in the animation clip.
Sample a channel of the walk clip after 1.2 seconds.
float value = agentclipsample(0, @primnum, "walk", 1.2, "latch_leftfoot");