Houdini 20.0 Nodes APEX Nodes

dict::Insert

Adds new entries to a dictionary.

On this page
Since 20.0

This callback edits the dict dictionary input in-place (the dictionary is updated without creating a copy), adding new entries based on the args variadic input. The keys of the new entries come from the subport names of the args input. The data type for each entry is determined by the data type of the port.

If the input dictionary has a key that matches one of the keys that are being set, the value at the original key is overwritten with the new value.

Inputs

*dict: Dict

The dictionary to edit.

args: VariadicArg<void>

A variadic input of the entries to add to the dictionary. The names of the subports are the keys of the new entries.

Outputs

*dict: Dict

The edited version of the input dictionary with the new entries added.

APEX Nodes