Houdini 21.0 Nodes APEX nodes

dict::PatternRenameKeys

Performs pattern replacement on the keys of a dictionary.

On this page
Since 21.0

Performs pattern replacement on the keys of a dictionary which match the keys pattern. The new key is formed by replacing “*” in the pattern with the original key.

For example, to prefix the keys of a dictionary that end with “t“ with ”test”:

keys

pattern

*_t

test_*

To replace the “hand” key with “foot”:

keys

pattern

hand

foot

Inputs

*dict: Dict

A dictionary with keys to be renamed.

key: String

A pattern of the keys to update in the input dictionary.

pattern: String

The pattern that is used to rename the keys in the input dictionary.

Outputs

*dict: Dict

The dict input with its keys renamed.

See also

APEX nodes