ComfyUI > Nodes > Basic data handling > get multiple

ComfyUI Node: get multiple

Class Name

Basic data handling: DictGetMultiple

Category
Basic/DICT
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

get multiple Description

DictGetMultiple retrieves multiple dictionary values using specified keys, with default values for missing keys.

get multiple:

The DictGetMultiple node is designed to efficiently retrieve multiple values from a dictionary using a list of specified keys. This node is particularly useful when you need to extract several values at once, streamlining the process and reducing the need for multiple individual retrieval operations. By providing a list of keys, the node returns a corresponding list of values, ensuring that even if a key is not found in the dictionary, a default value can be used in its place. This functionality is beneficial for handling scenarios where some keys might be missing, allowing for a seamless and error-free data retrieval process. The node's ability to handle missing keys gracefully by substituting a default value enhances its robustness and flexibility, making it an essential tool for managing complex data structures in creative AI projects.

get multiple Input Parameters:

input_dict

The input_dict parameter is the dictionary from which you want to retrieve values. It serves as the primary data source for the node's operation. This parameter is crucial as it contains the key-value pairs that the node will search through to find the specified keys. There are no specific minimum or maximum values for this parameter, as it can be any dictionary structure. However, it must be a valid dictionary for the node to function correctly.

keys

The keys parameter is a list of keys that you want to use to retrieve values from the input_dict. This list dictates which values will be extracted from the dictionary. The order of keys in this list will determine the order of the values in the output list. There are no specific constraints on the number of keys you can provide, but they should correspond to the keys present in the input_dict for successful retrieval.

default

The default parameter is an optional value that will be used if a specified key is not found in the input_dict. This parameter ensures that the node can handle missing keys gracefully without causing errors. If not provided, the default value is None. This parameter is particularly useful for maintaining consistent output lengths and avoiding disruptions in data processing workflows.

get multiple Output Parameters:

values

The values parameter is the output list containing the values retrieved from the input_dict based on the specified keys. Each element in this list corresponds to a key from the keys parameter, and if a key is not found, the default value is used in its place. This output is essential for accessing multiple data points simultaneously, facilitating efficient data handling and manipulation in your projects.

get multiple Usage Tips:

  • Ensure that the keys list accurately reflects the keys you wish to retrieve from the input_dict to avoid unexpected results.
  • Utilize the default parameter to handle cases where some keys might not be present in the dictionary, ensuring that your output list remains consistent in length.
  • Consider the order of keys in the keys list, as it will directly affect the order of values in the output list, which can be important for subsequent data processing steps.

get multiple Common Errors and Solutions:

KeyError

  • Explanation: This error occurs when a key specified in the keys list is not found in the input_dict and no default value is provided.
  • Solution: Provide a default value to handle missing keys gracefully, preventing the error and ensuring consistent output.

TypeError: 'NoneType' object is not subscriptable

  • Explanation: This error may occur if the input_dict is not a valid dictionary or is None.
  • Solution: Ensure that the input_dict is a properly initialized dictionary before passing it to the node.

get multiple Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

get multiple