Houdini 20.0 Nodes APEX Nodes

dict::RenameKeys

Renames the keys of a dictionary.

On this page
Since 20.0

This callback takes as input 2 dictionaries. The second dictionary, keymap, defines a mapping of strings to strings that is used to rename the keys of the first dictionary.

The dict ports of this callback are in-place ports. This means that the dictionary is updated without creating a copy.

Inputs

*dict: Dict

A dictionary with keys to be renamed.

keymap: Dict

A dictionary that maps the keys of dict to their new names.

Outputs

*dict: Dict

The dict input with its keys renamed.

APEX Nodes