Houdini 20.5 Nodes APEX Nodes

rig::SampleSplineTransformsToArray 2.0

Samples a given number of transforms from a spline.

On this page
Since 20.5

Samples a given number of transforms from a spline. The point count of the resampled spline geometry is specified by numsamples. The resampled curve is output via the outgeo port, and its corresponding transforms are output on the xforms port (they are also available as the transform point attribute on outgeo).

Inputs

geo: Geometry

Geometry containing splines. The spline primitive must have a transform point attribute (which will be resampled), and optionally a twist point attribute specifying an additional counterclockwise rotation (in radians) that is applied about the xforms' local tangent axis.

primnum: Int

The primitive number of the spline to sample.

numsamples: Int

The number of samples to take for the output spline.

tangent: Vector3

The local space tangent vector of xforms that is aligned to the next point. The default value is the -Z axis (the -Z axis of xforms points toward the next point).

smooth: Bool

If set to True, adds smoothstep smoothing to the output transforms. The default value is False.

byedge: Bool

If set to True, samples each segment of the spline separately, with numsamples points sampled on each edge of the input geometry.

Outputs

outgeo: Geometry

Geometry containing the resampled spline. The output geometry has the following point attributes:

  • curveu: The parametric value of the sampled point on the input geometry geo.

  • transform: A 3×3 matrix with the resampled transform.

  • tangentu: A vector that points in the direction of the next point.

arclength: Float

The arc length of the input control spline specified by geo and primnum.

xforms: Matrix4Array

The output transforms.

See also

APEX Nodes