Skip to main content

vArrayPathTwist

Rotates the normal and binormal of path frames around the tangent by an angle per point.

AdvancedMograph / ArrayArrayScriptValJSON
vArrayPathTwist node

vArrayPathTwist takes a path packet with frames, for example from vArrayPathFrame, and rolls the normal and binormal around the tangent at every point. Start Twist and End Twist set the angle in degrees.

Parameters​

ParameterTypeDefaultDescription
Twist ModeDropdownLinear Start-EndLinear Start-End (default) or Constant. Constant uses End Twist on every point.
Start Twist (deg)Float0Angle at the first point in degrees, in Linear Start-End. Default 0.
End Twist (deg)Float180Angle at the last point in degrees, or on every point in Constant. Default 180.
Closed PathInteger0Treats the path as a closed loop when frames have to be built. Default off.
Path/Frame PacketDATATYPE—A packet with a path and frames, for example from vArrayPathFrame.
Read the full description

At point i of n, Linear Start-End uses the angle Start Twist + (End Twist - Start Twist) * (i - 1) / (n - 1). Constant uses End Twist for every point. The normal and binormal of that point are rotated by the angle around its tangent.

The defaults are 0 and 180 degrees, so the frames make half a turn along the path. The output packet holds the path, the tangent, the twisted normal and binormal, the angle for each point and the closed flag. The path points are not changed.

If the input has no frames, they are built from the path with the up vector 0, 1, 0. Closed Path applies then.

Example Connections​

vArrayPointsOnArc.Output -> vArrayPathFrame.PathPacket
vArrayPathFrame.Output -> vArrayPathTwist.PathFramePacket
vArrayPathTwist.Output -> vArrayRenderSweepProfile.PathPacket