Houdini 20.0 Nodes APEX Nodes

Convert<T>

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. See supported types for the available conversion options.

Inputs

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

Outputs

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

Supported Types

SrcT

DesT

Notes

Int

Bool

 

Bool

Int

 

Int

Float

 

Float

Int

 

ApexNodeID

Bool

 

ApexPortID

Bool

 

Matrix4

Matrix3

 

Matrix3

Matrix4

 

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 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.

APEX Nodes