Nodes/ComfyUI-aihub-workflow-exposer/AIHub Action New Layer
ComfyUI Node

AIHub Action New Layer

A ComfyUI node in aihub/actions with 9 inputs and 2 outputs.

By otavanopisto·Created 12 months ago·Updated 7 months ago· 7
AIHub Action New Layer
  • image
  • mask
  • IMAGE
  • MASK
pos_x0
pos_y0
reference_layer_id
reference_layer_actionNEW_AFTER
namenew layer
actionREPLACE
file_name
Categoryaihub/actions

Inputs (9)

NameTypeDefaultDescription
imageIMAGE
pos_xINT0The X position of the layer in the canvas
pos_yINT0The Y position of the layer in the canvas
reference_layer_idSTRINGThe Layer ID regarding the position of the image, the meta-values __first__ and __last__ can be used to refer to the first and last layer respectively
reference_layer_actionCOMBONEW_AFTERSpecify the action to execute at the given layer id
nameSTRINGnew layerThe name of the layer this is used for the layer list in the UI
actionCOMBOREPLACEThis refers to the file system level action, if append is selected, if the image exist it will be added a number to the name to make it unique, if replace is selected, the image will be replaced with the new one; since layers are supposed to be integrated in the project REPLACE is often best
maskoptMASK
file_nameoptSTRINGThe filename to use, if not given the name value will be used with a .png extension

Outputs (2)

NameTypeDescription
IMAGEIMAGE
MASKMASK