Houdini 20.5 Nodes Geometry nodes

Attribute Adjust Dictionary geometry node

Modifies dictionary attribute values.

Since 19.0

This SOP provides several common operations for editing dictionary attribute values, reducing the need to create VOP networks or write VEX code.

Parameters

General

Group

The subset of the input geometry to apply the modifications to. Leave this blank to affect all elements.

Attribute Name

The name of the attribute to create or modify. If the attribute does not exist with the given name, it will be added to the selected Attribute Class.

Attribute Class

Element type for the destination attribute (specified by Attribute Name).

Pre-Process

Removes or renames existing keys in the dictionary.

Remove Keys

Removes any keys from the dictionary which match this pattern.

Rename Keys

Renames keys in the dictionary using one or more search/replace patterns. The standard pattern renaming syntax from the replace_match function is used. For example, if From is *_to_* and To is *-*, a key named ab_to_cd will become ab-cd.

From

The string pattern to rename.

To

The replacement pattern for the string.

Import Attribute Values

Creates key/value pairs from other attributes on the geometry.

Merge Dictionaries

Inserts all of the key/value pairs from any dictionary attribute in the Attribute Class which matches this pattern.

Delete Merged Attributes

If enabled, deletes the attributes matched by the Merge Dictionaries pattern after importing their values into the dictionary.

Import Attributes

Creates a key/value pair from the name and value of each attribute in the Attribute Class which matches this pattern. Any dictionary attributes matched by the Merge Dictionaries pattern are skipped.

Delete Imported Attributes

If enabled, deletes the attributes matched by the Import Attributes pattern after importing their values into the dictionary.

Set Values

Number of Entries

The number of key/value pairs to edit.

Enable

Toggles whether the key/value pair is created.

Key

The string key to insert or modify the value for.

Type

The data type of the dictionary value. To create values with complex data types (such as matrices, arrays, or dictionaries), the Import Attributes option can be used.

Value

The value to insert into the dictionary for the Key.

Post-Process

Export Attributes

Creates an attribute in the __Attribute Class_ for the value of each key which matches this pattern.

Remove Exported Keys

If enabled, removes the keys matched by the Export Attributes pattern after creating attributes from their values.

Delete Empty Dictionary

If enabled, removes the dictionary attribute if it is empty after removing the exported keys.

See also

Geometry nodes