Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates loading and manipulating PSD files for AI artists, extracting and utilizing individual layers for creative control.
The LayerUtility: LoadPSD
node is designed to facilitate the loading and manipulation of Photoshop Document (PSD) files within a digital art workflow. This node is particularly beneficial for AI artists who work with layered image files, as it allows for the extraction and utilization of individual layers from a PSD file. By leveraging this node, you can easily access and manipulate specific layers, whether they are visible or hidden, based on your creative needs. The node's primary function is to parse PSD files, enabling you to work with complex image compositions by isolating layers for further processing or integration into your projects. This capability is essential for artists who require precise control over their layered artwork, allowing for enhanced creativity and flexibility in digital art creation.
This parameter allows you to select the PSD file you wish to load. It provides a list of available PSD files from the input directory, enabling you to choose the desired file for processing. The selection is facilitated through an image upload interface, making it user-friendly and straightforward.
The file_path
parameter specifies the path to the PSD file you want to load. By default, it is an empty string, which means the node will use the path from the selected image. This parameter is useful if you need to specify a different file path manually.
This boolean parameter determines whether hidden layers in the PSD file should be included in the processing. By default, it is set to False
, meaning only visible layers are considered. Setting it to True
allows you to include hidden layers, which can be useful if you need to access all layers regardless of their visibility status.
This parameter allows you to specify the method for identifying layers within the PSD file. You can choose between layer_index
and layer_name
. This choice affects how the node searches for and selects specific layers, providing flexibility in layer identification based on your preferences or project requirements.
The layer_index
parameter is used when you choose to find layers by their index. It specifies the index of the layer you want to extract. The default value is 0
, with a range from -1
to 999
. A value of -1
indicates the top layer, providing a convenient way to access the most prominent layer in the stack.
This parameter is used when you opt to find layers by their name. It allows you to specify the exact name of the layer you wish to extract. This is particularly useful when working with PSD files that have well-defined layer names, enabling precise layer selection based on naming conventions.
The flat_image
output provides a composite image of the entire PSD file, flattened into a single layer. This output is useful for obtaining a quick overview of the complete artwork without the complexity of individual layers, making it ideal for previewing the final composition.
The layer_image
output contains the specific layer extracted based on the parameters you set, such as layer_index
or layer_name
. This output is crucial for isolating and working with individual layers, allowing you to focus on specific elements of your artwork for further editing or integration.
The all_layers
output provides a collection of all layers within the PSD file, converted into a format suitable for further processing. This output is valuable for artists who need access to every layer in the file, enabling comprehensive manipulation and exploration of the layered structure.
include_hidden_layer
to True
if your PSD file contains important hidden layers that you want to work with.find_layer_by
with layer_name
for precise layer selection when your PSD files have descriptive layer names, which can save time and reduce errors in layer identification.layer_index
to quickly access specific layers by their position in the stack, especially if layer names are not unique or descriptive.layer_index
or layer_name
.layer_index
or layer_name
values to ensure they match the layers in your PSD file. If using layer_name
, verify that the name is spelled correctly and matches the case used in the PSD file.file_path
is correct and that the PSD file is located in the specified directory. If using the image upload interface, verify that the correct file is selected.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.