Houdini 21.0 Nodes Copernicus nodes

Layer to Points Copernicus node

Creates points based on a layer.

On this page
Since 21.0

This node creates points from the pixels in a layer. Use this node when you want to create points from a layer, such as for stamp points or a VDB activate. For example, use this node to scatter points on a layer.

Note

It’s easy to create more points than preferred when using this node.

You can use the Scatter SOP or VDB Leaf Points and Layer to VDB Leaf Points COPs instead of this node when working with SOPs or VDB leaves, respectively.

Parameters

Method

The method used to create the points from a layer.

All Pixel

Create a point for each pixel in the input.

Non-Zero Pixels

Create a point if the pixel isn’t zero.

Count per Pixel

Each pixel stores how many points to create, so create that many points per pixel.

Unique Values

Create a point for each unique value in the input layer.

If the input layer’s integer values are 1, 1, 5, 3, 23, 3, and 5 for example, then the unique values are 1, 5, 3, and 23. This means the node makes four points. This option is useful in workflows such as with the Segment by Connectivity COP where you want to create a point for each segment.

Count from First Pixel

The first pixel in the layer stores how many points to create, so create that many points.

Count from Last Pixel

The last pixel in the layer stores how many points to create, so create that many points.

Layer Attrib

The name of the integer attribute to set with the value of the pixel that generated the point. This stores the original pixel’s value.

This parameter is useful when you want to know the original value, such as for non-zero or unique values.

Index Attrib

The name of the integer attribute that stores the raw offset (x + y * xres) of the source pixel in the input layer’s buffer. This lets you know where the point came from.

Set Positions

Initializes the position attribute with the pixel location. When off, the position attribute is zero.

Tip

Zero attributes don’t require memory, so turn this off for optimization if you don’t care about the position.

Ignore Minus One

Ignores the layer value -1 when computing unique values. A value of -1 in an ID layer often means an invalid ID, so ignoring it ensures that points are created for only valid IDs. When off, -1 is generated with the unique values.

Point Attributes

The amount of additional point attributes, which are available in later OpenCL nodes. This lets you define the default attributes of the geometry.

Name

The name of the point attribute.

Class

The classification of the point attribute.

Note

Only the Detail and Point options are directly applicable since this node creates points. If there are no primitives or vertices, they still have attribute tables.

Type

The type of attribute to create, which is either an integer or float.

See Data types for more information.

Tuple Size

The tuple size of the attribute.

Inputs

layer

The layer that provides the location to create points and controls the number generated.

Outputs

points

The geometry with the points created from pixels.

See also

Copernicus nodes