Houdini 20.5 Nodes APEX nodes

dynamicpath::GetSection

Gets a section of a dynamic path and its corresponding layer index.

On this page
Since 20.0

Takes a dynamic path array, patharray, that represents the layers of a dynamic path, and returns the section of the uppermost layer at time. The index of the layer in patharray is also returned. See dynamicpath::Evaluate for more information on the patharray input and how dynamic path layers are evaluated.

The entire time range of a dynamic path is partitioned into sections, where each section is defined by a pair of values - the start time and end time of the section. For each section that is returned by this node, the entire time range within the section belongs to a particular layer.

Inputs

patharray: ApexDynamicPathArray

An input array of dynamic paths, which represents a single dynamic path comprised of many layers.

time: Float

A time at which to determine the evaluated layer of the path.

defaultpathindex: Int

A default index to return when no layer at time can be found. This most commonly occurs when patharray is empty.

Outputs

pathindex: Int

The index of the layer in patharray that corresponds to the section specified by range.

range: Vector2

A pair of times indicating the time range of the section at time.

See also

APEX nodes