Houdini 20.5 Nodes APEX nodes

IntBitMaskToBool

Extracts individual bits from a bit mask.

On this page
Since 20.0

Extract individual bits from the bit mask by connecting Value<Bool> nodes to the mask variadic output. Each subport on the output extracts a single bit from the bit mask, with the first subport corresponding to the least significant bit in the bit mask. A bool output of True represents a value of 1 in the bit mask, and a bool of False represents a value of 0. For example:

Int Input Bit Mask Output Subports

1

0001

mask0 = True

8

1000

mask0 = False
mask1 = False
mask2 = False
mask3 = True

10

1010

mask0 = False
mask1 = True
mask2 = False
mask3 = True

Inputs

entries: Int

The bit mask from which to extract bits.

Outputs

mask: VariadicArg<Bool>

Variadic output of Bool values. Each entry represent a single bit of the bit mask, with the first entry corresponding to the least significant bit.

See also

APEX nodes