Houdini 16.5 Nodes VOP nodes

Swizzle Vector4 VOP node

Rearranges components of a vector4.

On this page

You can use the parameter interface or the node inputs to set the source vector and the new places for the source components.

Parameters

Source vector

The vector to rearrange.

Component 1

Which component of the source vector to use as the first component of the output vector.

Component 2

Which component of the source vector to use as the second component of the output vector.

Component 3

Which component of the source vector to use as the third component of the output vector.

Component 4

Which component of the source vector to use as the fourth component of the output vector.

Inputs

src

The vector to rearrange.

integer inputs

Specify which component of the original vector to put in each place in the returned vector. So, for example, if i0 is 2, the third component of the original vector is copied to the zeroth component of the output vector.

Output

vec

The rearranged vector.

See also

VOP nodes