ComfyUI > Nodes > ComfyUI-Apt_Preset > Data_preset_save

ComfyUI Node: Data_preset_save

Class Name

Data_preset_save

Category
Apt_Preset/chx_load
Author
cardenluo (Account age: 1062days)
Extension
ComfyUI-Apt_Preset
Latest Updated
2026-04-04
Github Stars
0.28K

How to Install ComfyUI-Apt_Preset

Install this extension via the ComfyUI Manager by searching for ComfyUI-Apt_Preset
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Apt_Preset 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

Data_preset_save Description

Facilitates saving and managing parameter presets in TOML format for streamlined workflows.

Data_preset_save:

The Data_preset_save node is designed to facilitate the saving of parameter presets in a structured format, allowing you to either create new presets or overwrite existing ones. This node is particularly useful for managing and organizing different configurations of parameters that you might frequently use in your AI art projects. By saving these presets, you can easily switch between different setups without manually re-entering each parameter, thus streamlining your workflow and enhancing productivity. The node operates by converting parameter data into a TOML format, which is a human-readable data serialization language, ensuring that your presets are both easy to read and modify if necessary.

Data_preset_save Input Parameters:

param

This parameter represents the data that you wish to save as a preset. It is expected to be of type PDATA, which typically includes a collection of parameters that define a specific configuration or setup. The content of param directly influences the preset's details and is crucial for accurately capturing the desired settings.

tomlname

The tomlname parameter is a string that specifies the name of the TOML file where the preset will be saved. By default, it is set to "new_preset", but you can customize it to reflect the nature or purpose of the preset. This name helps in identifying and organizing your presets, making it easier to locate and apply them in future projects.

savetype

This parameter determines the saving behavior of the node. It offers two options: "new save" and "overwrite save". Choosing "new save" will create a new preset file, while "overwrite save" will replace an existing file with the same name. This choice is crucial for managing your presets, as it allows you to either preserve existing configurations or update them with new settings.

Data_preset_save Output Parameters:

This node does not produce any direct output parameters. Its primary function is to save the input parameters into a file, and thus it does not return any values or data upon execution.

Data_preset_save Usage Tips:

  • Ensure that the param input is correctly configured with all necessary parameters before saving, as this will directly affect the accuracy and usefulness of the preset.
  • Use descriptive and meaningful names for tomlname to easily identify the purpose or configuration of each preset, which will help in managing multiple presets effectively.
  • Be cautious when selecting the savetype option, especially when choosing "overwrite save", to avoid unintentionally losing existing presets.

Data_preset_save Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error may occur if the specified directory for saving the preset does not exist.
  • Solution: Ensure that the directory path where the preset is being saved is correct and exists on your system.

PermissionError

  • Explanation: This error indicates that the node does not have the necessary permissions to write to the specified directory.
  • Solution: Check the directory permissions and ensure that the application has write access to the location where you are trying to save the preset.

InvalidParameterError

  • Explanation: This error can occur if the param input does not conform to the expected PDATA format.
  • Solution: Verify that the param input is correctly formatted and contains all required parameters before attempting to save the preset.

Data_preset_save Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Apt_Preset
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.