ComfyUI > Nodes > ComfyUI_LayerStyle_Advance > LayerUtility: Load PSD(Advance)

ComfyUI Node: LayerUtility: Load PSD(Advance)

Class Name

LayerUtility: LoadPSD

Category
😺dzNodes/LayerUtility/SystemIO
Author
chflame163 (Account age: 701days)
Extension
ComfyUI_LayerStyle_Advance
Latest Updated
2025-03-09
Github Stars
0.18K

How to Install ComfyUI_LayerStyle_Advance

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

LayerUtility: Load PSD(Advance) Description

Facilitates loading and manipulating PSD files for AI artists, extracting and utilizing individual layers for creative control.

LayerUtility: Load PSD(Advance):

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.

LayerUtility: Load PSD(Advance) Input Parameters:

image

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.

file_path

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.

include_hidden_layer

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.

find_layer_by

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.

layer_index

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.

layer_name

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.

LayerUtility: Load PSD(Advance) Output Parameters:

flat_image

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.

layer_image

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.

all_layers

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.

LayerUtility: Load PSD(Advance) Usage Tips:

  • To ensure you capture all necessary layers, set include_hidden_layer to True if your PSD file contains important hidden layers that you want to work with.
  • Use 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.
  • When working with large PSD files, consider using layer_index to quickly access specific layers by their position in the stack, especially if layer names are not unique or descriptive.

LayerUtility: Load PSD(Advance) Common Errors and Solutions:

Layer Not Found!

  • Explanation: This error occurs when the specified layer cannot be found using the provided layer_index or layer_name.
  • Solution: Double-check the 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 Not Found

  • Explanation: This error indicates that the specified PSD file path is incorrect or the file does not exist in the directory.
  • Solution: Ensure that the 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.

LayerUtility: Load PSD(Advance) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_LayerStyle_Advance
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 Playground, enabling artists to harness the latest AI tools to create incredible art.