Houdini 20.5 Nodes APEX nodes

dynamicpath::GetAllSections

Gets sections of a dynamic path and their corresponding layer indices.

On this page
Since 20.0

Takes a dynamic path array, patharray, that represents the layers of a dynamic path, and returns the sections of the uppermost layer at the samplerate. The indices of the layers that correspond to each section are 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.

samplerate: Float

The sample rate of the path. This is used to step into a new section for evaluation.

skipbase: Bool

If set to True, any sections in the base layer are skipped.

defaultpathindex: Int

A default index to return when no layer can be found for a given range. This most commonly occurs when patharray is empty.

Outputs

pathindices: IntArray

An array of indices of the layers in patharray that correspond to each section.

sectionranges: Vector2Array

An array of the sections of the dynamic path. Each component of the array is a pair of times indicating the time range of the section.

See also

APEX nodes