Houdini 22.0 Nodes Geometry nodes

Crowd Assign Layers geometry node

Assigns layers to a crowd to produce geometry variations.

On this page
Since 19.0

This SOP creates random combinations of layers that are assigned to each agent in the crowd, producing geometry variations.

When building the agent definition, the Agent Layer SOP can be used to create the layers (sets of shapes) that are used by this SOP after populating the crowd.

Parameters

Group

The agent primitives affected by this SOP’s operations. Each assignment can modify a subset of this group.

Layer List

Specifies whether to edit the agent’s list of current layers or collision layers.

Remove Layers

When turned on, removes the agent’s assigned layers that match this pattern. For example, a value of * removes all the layers assigned to the agent before applying the new layer assignments.

Switch Layers

Switches the assigned layers using one or more search/replace patterns. This can be useful for switching agents from proxy layers to high-res layers. The standard pattern-renaming syntax from the replace_match function is used. For example, if From is *_to_* and To is *-*, a layer named ab_to_cd becomes ab-cd.

From

The string pattern to rename.

To

The replacement pattern for the string.

Number of Assignments

Performs layer assignments (from a weighted distribution) to a group of agents.

Layer Selection

When turned on, the layer assignment is performed.

Agents

Select By

Specifies how to select the agents for this layer assignment. The agents can be selected by specifying a group or matching against the agent’s list of current layers or collision layers.

Group

When Select By is set to Group, this is a subgroup of agents to assign a layer to.

Layer Pattern

When Select By is set to Current Layer or Collision Layer, a layer is assigned to the agent if at least one of the layers already assigned to the agent matches this pattern. This includes earlier assignments made by this SOP.

Percent to Select

When turned on, the layer assignment is only applied to a percentage of the selected agents.

Agent Random Seed

When Percent to Select is turned on, this is the seed for the random selection of agents.

Layer Random Seed

The seed for the random layer selection.

Layer Choices

A weighted random distribution of layers.

Layers

One or more layer names. The associated Weight value is divided evenly between the layers matching this pattern.

Weight

Specifies how likely the layers are to be selected.

Examples

LayerVariations

This example demonstrates how to create several layers with different geometry variations and randomly assign those layers to agents.

See also

Geometry nodes