ComfyUI  >  Nodes  >  ComfyUI Layer Style >  LayerUtility: Load PSD

ComfyUI Node: LayerUtility: Load PSD

Class Name

LayerUtility: LoadPSD

Category
😺dzNodes/LayerUtility/SystemIO
Author
chflame163 (Account age: 445 days)
Extension
ComfyUI Layer Style
Latest Updated
6/24/2024
Github Stars
0.6K

How to Install ComfyUI Layer Style

Install this extension via the ComfyUI Manager by searching for  ComfyUI Layer Style
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Layer Style 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LayerUtility: Load PSD Description

Facilitates loading and manipulating PSD files for AI art projects, extracting and working with individual layers efficiently.

LayerUtility: Load PSD:

The LayerUtility: LoadPSD node is designed to facilitate the loading and manipulation of PSD (Photoshop Document) files within your AI art projects. This node allows you to import PSD files, extract individual layers, and work with them directly in your workflow. By leveraging this node, you can easily access and utilize the rich layer information contained in PSD files, enabling more complex and detailed image processing tasks. Whether you need to work with visible layers, include hidden ones, or find specific layers by name or index, this node provides the necessary functionality to streamline your creative process.

LayerUtility: Load PSD Input Parameters:

image

This parameter allows you to select the PSD file you wish to load. It provides a list of available PSD files in the input directory, and you can also upload a new image. The selected file will be the source from which layers are extracted and processed.

file_path

This is a string parameter where you can specify the file path of the PSD file. If left empty, the node will use the default path from the input directory. This parameter is useful if your PSD file is located in a different directory or if you want to specify a particular file path.

include_hidden_layer

This boolean parameter determines whether hidden layers in the PSD file should be included in the processing. If set to True, hidden layers will be made visible and included; if False, only visible layers will be processed. The default value is False.

find_layer_by

This parameter allows you to specify the method for finding a specific layer. You can choose between "layer_index" and "layer_name". This setting determines how the node will identify and extract the desired layer from the PSD file.

layer_index

This integer parameter specifies the index of the layer you want to extract. It ranges from -1 to 999, with -1 indicating the topmost layer. The default value is 0. This parameter is used when "find_layer_by" is set to "layer_index".

layer_name

This string parameter allows you to specify the name of the layer you want to extract. If the layer with the given name is found, it will be processed and extracted. This parameter is used when "find_layer_by" is set to "layer_name".

LayerUtility: Load PSD Output Parameters:

flat_image

This output parameter provides the flattened version of the PSD file as an image. It represents the composite of all layers merged together, giving you a single image that includes all visible content from the PSD file.

layer_image

This output parameter provides the specific layer image that was extracted based on the "find_layer_by" method and the corresponding "layer_index" or "layer_name". If the specified layer is not found, it will output an empty layer image with a warning message.

all_layers

This output parameter provides a list of all individual layers from the PSD file. Each layer is represented as an image, allowing you to access and manipulate each layer separately in your workflow.

LayerUtility: Load PSD Usage Tips:

  • To ensure you are working with the correct layer, double-check the "find_layer_by" setting and the corresponding "layer_index" or "layer_name" values.
  • If you want to include hidden layers in your processing, make sure to set the "include_hidden_layer" parameter to True.
  • Use the "flat_image" output to get a quick overview of the entire PSD file content, while "layer_image" and "all_layers" provide more granular control over individual layers.

LayerUtility: Load PSD Common Errors and Solutions:

Layer "layer_name" not found, top layer will be output.

  • Explanation: The specified layer name was not found in the PSD file.
  • Solution: Verify the layer name for any typos or ensure the layer exists in the PSD file. Alternatively, use the "layer_index" method to specify the layer.

Layer index layer_index not found, top layer will be output.

  • Explanation: The specified layer index is out of range or does not exist in the PSD file.
  • Solution: Check the total number of layers in the PSD file and ensure the index is within the valid range. Use -1 to select the topmost layer if unsure.

PSD file not found at specified file path.

  • Explanation: The file path provided does not point to a valid PSD file.
  • Solution: Ensure the file path is correct and the PSD file exists at the specified location. Double-check for any typos in the file path.

LayerUtility: Load PSD Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Layer Style
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.