ComfyUI Node
filter by keys
Creates a new dictionary with only the specified keys. This node takes a dictionary and a list of keys, then returns a new dictionary containing only the key-value pairs for the keys that exist in the original dictionary.
filter by keys
- input_dict
- keys
- DICT
CategoryBasic/DICT
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| input_dict | DICT | — | |
| keys | LIST | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| DICT | DICT | — |