Skip to content

All ComfyUI Nodes Manual

杨必赞 edited this page Nov 25, 2024 · 9 revisions

latest updated in 1.4.0. If any info is out of date please submit a issue

All SD-PPP related node

All the node by SD-PPP has two state when Photoshop connected and disconnected

Disconnected state

  • You can download the Photoshop .ccx plugin in this state

Connected state

  • The Page ID will show here. The ID is used to identify the line in the Photoshop plugin panel

Get Image From Photoshop

image

input

  • layer_or_group: select the Photoshop layer. By the widget or a link by LAYER output.
  • document: select the Photoshop document (Untitled-1.psd etc.). By the widget or the LAYER output.
  • bound: select the canvas boundary for getting image. By a link by BOUNDARY output.

output

  • rgb_out: the image got from PS without alpha. Link it to vae encode.
  • alpha_out: the alpha channel of the image. It can be useful for Join Image with Alpha, or for inpaint/outpaint with InvertMask

potential error

  • document not found
  • layer not found

Send images to Photoshop

input

  • image: The input image. It could be a batch of image.
  • document: select the Photoshop document (Untitled-1.psd etc.) for sending via this widget or a link by DOCUMENT output.
  • layer_or_group: select the Photoshop layer via the widget or a link by LAYER output.
  • bound: select the image boundary for sending via the widget or a link by BOUNDARY output

potential error

  • layer not found

Get Selection

image

input

  • document: select the Photoshop document (Untitled-1.psd etc.). By the widget or the LAYER output.
  • bound: select the canvas boundary for getting image. By a link by BOUNDARY output.

output

  • mask the ComfyUI MASK representing the selection area. If no selection, return the entire canvas area.

Get Text From Photoshop

input

  • document: select the Photoshop document (Untitled-1.psd etc.) for getting via the widget or a link by DOCUMENT output.
  • layer_or_group: select the Photoshop layer via the widget or a link by LAYER output.

output

  • text: the text content of the TEXT layer.

potential error

  • document not found
  • layer not found
  • the specific layer is not a text layer.

Get Document

input

  • document_name: select the Photoshop document (Untitled-1.psd etc.) for getting via this widget.

output

  • document: the DOCUMENT data that you can link to other SD-PPP node
  • canvas_bound: ths BOUNDARY data that you can link to other SD-PPP node

Get Layer By ID

input

  • document: the DOCUMENT data that link by other SD-PPP node

output

  • layer_or_group: the LAYER data that you can link to other SD-PPP node
  • layer_bound: the BOUNDARY data that you can link to other SD-PPP node
  • layer_info: the LAYER_INFO data that you can link to ParseLayerInfo

Get Layers In Group

current version(1.3.0) only the first matched layer would be returned.

input

  • layer_or_group: the LAYER data that link by other SD-PPP node
  • select: choose to only return the specific type of layer.
    • first: the first one
    • text: only text layer
    • image: only image layer
    • all: all the layer

output

  • layer_or_group: the LAYER data that you can link to other SD-PPP node
  • layer_bound: the BOUNDARY data that you can link to other SD-PPP node
  • layer_info: the LAYER_INFO data that you can link to ParseLayerInfo

Get Linked Layers

current version(1.3.0) only the first matched layer would be returned.

input

  • layer_or_group: the LAYER data that link by other SD-PPP node
  • select: choose to only return the specific type of layer.
    • first: the first one
    • text: only text layer
    • image: only image layer
    • all: all the layer

output

  • layer_or_group: the LAYER data that you can link to other SD-PPP node
  • layer_bound: the BOUNDARY data that you can link to other SD-PPP node
  • layer_info: the LAYER_INFO data that you can link to ParseLayerInfo

Parse Layer Info

input

  • layer_info: the LAYER_INFO data that link by other SD-PPP node

output

  • bound_left: primitive.
  • bound_top: primitive.
  • bound_right: tprimitive.
  • bound_bottom: primitive.
  • opacity: primitive.