Houdini 20.5 Nodes APEX nodes

Convert<SrcT, DesT>

Converts an input of type SrcT to an output of type DesT.

On this page
Since 20.0

Converts an input of type SrcT to an output of type DesT. The table below shows the available conversion options.

SrcT

DesT

Notes

Int

Bool

 

Bool

Int

 

Int

Float

 

Float

Int

 

ApexNodeID

Bool

 

ApexPortID

Bool

 

Matrix3

Matrix4

 

Matrix4

Matrix3

 

Vector4

Matrix3

Treats the Vector4 as a quaternion and returns a rotation matrix that represents the same spatial rotation.

Matrix4

Vector4

Extracts the top-left 3×3 portion of the matrix and converts it into a quaternion. If the extracted matrix is not a valid rotation matrix, the conversion returns the identity quaternion.

FloatRamp

ColorRamp

Converts a FloatRamp to a ColorRamp. Note that under the hood, float ramps are color ramps with all 4 channels having the same value.

ColorRamp

FloatRamp

Converts a ColorRamp to a FloatRamp. The first channel of the color ramp (Red) becomes the value of the float ramp.

Inputs

a: ApexNodeID, ApexPortID, Bool, ColorRamp, Float, FloatRamp, Int, Matrix3, Matrix4, Vector4

Input of type SrcT to convert to an output of type DesT.

Outputs

b: Bool, ColorRamp, Float, FloatRamp, Int, Matrix3, Matrix4, Vector4

Output of type DesT, converted from an input of type SrcT.

APEX nodes