Houdini 20.5 Nodes Copernicus nodes

ID to Mask Copernicus node

Creates a mask from an ID layer based on filtering parameters.

On this page

This node generates a mask from an ID layer. Configure the node’s parameters to filter in which IDs create the output mask. You can use this mask to isolate filters for post-processing.

Parameters

ID Pattern

The group syntax to use to filter IDs. If this is blank, the node filters all IDs.

Invert Mask

Inverts the mask that the node generates.

Keep by Range

Keep by Range

Filters IDs based on a range.

Range Type

Specifies the range that determines how to filter the IDs.

Start and End (default)

Set a range that starts and ends with a specific ID. The range includes the start and end ID.

Start and Length

Set a range that starts with a specific ID and ends once the range includes a specific number of IDs.

Start ID

When this parameter is on and the Range Type is Start and End, this is the ID at the start of the range. For example, a value of 0 means the range includes IDs greater than and equal to 0.

The default value is 0. When this parameter is off, there is no limit for the start of the range.

End ID

When this parameter is on and the Range Type is Start and End, this is the ID at the end of the range. For example, a value of 100 means the range includes IDs less than and equal to 100.

The default value is 100. When this parameter is off, there is no limit for the end of the range.

Range Offset

When Range Type is Start and End, this is the value to add to the Start ID and End ID parameters.

The default value is 0.

Start ID

When Range Type is Start and Length, this is the ID at the start of the range. For example, a value of 0 means the range includes IDs greater than and equal to 0.

The default value is 0.

Length

When Range Type is Start and Length, this is how many IDs to include in the range.

The default value is 5.

Range Filter

This filter selects a subset of IDs in an alternating pattern. For example, use this filter if you want to select every sixth ID.

Select/of

The number of IDs to select out of every block of IDs. For example, set Select to 1 and of to 2 so the filter selects half of the integer values. The Offset parameter impacts whether the selected values are odd or even.

The default values are 1 of 2.

Offset

The start of the range filter, which is measured relative to the start of the range.

The default value is 0.

Keep by Chance

Keep by Chance

Filters by selecting a subset of IDs by random chance.

Probability

The chance (percentage) that the group includes the ID. For example, a value of 0.1 means that the group includes about 10% of the IDs.

The default value is 0.5.

Seed

The initial seed that determines which elements to include. Changing this value causes each ID to generate a new random value, which results in a new pattern.

The default value is 30.

Keep within Mask

Keep within Mask

When you have a mask input, this filters by keeping a subset of IDs within a mask layer.

Threshold

When you have a mask input, pixels in the mask layer that have a value greater than this threshold are considered when masking.

The default value is 0.5.

Inputs

id

The original ID layer to convert.

mask

An optional per-pixel mask amount that’s scaled by the Mask parameter.

Outputs

mask

The output mask layer.

Copernicus nodes