ComfyUI Node
AIHub Action New Layer
A ComfyUI node in aihub/actions with 9 inputs and 2 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| pos_x | INT | 0 | The X position of the layer in the canvas |
| pos_y | INT | 0 | The Y position of the layer in the canvas |
| reference_layer_id | STRING | The 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_action | COMBO | NEW_AFTER | Specify the action to execute at the given layer id |
| name | STRING | new layer | The name of the layer this is used for the layer list in the UI |
| action | COMBO | REPLACE | This 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 |
| maskopt | MASK | — | |
| file_nameopt | STRING | The filename to use, if not given the name value will be used with a .png extension |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |