Houdini 20.5 Nodes APEX nodes

dict::Insert

Adds new entries to a dictionary.

On this page
Since 20.0

Adds new entries to the input dictionary 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.

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

Inputs

*dict: Dict Required

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.

See also

APEX nodes