diff --git a/__init__.py b/__init__.py index 08f2e47..5e22b41 100644 --- a/__init__.py +++ b/__init__.py @@ -28,6 +28,7 @@ async def get_node_list(self) -> list[type[io.ComfyNode]]: krita.KritaSendText, krita.KritaCanvas, krita.KritaSelection, + krita.KritaSelectionBounds, krita.KritaImageLayer, krita.KritaMaskLayer, krita.Parameter, diff --git a/krita.py b/krita.py index 68c7beb..b761843 100644 --- a/krita.py +++ b/krita.py @@ -222,6 +222,26 @@ def execute(cls, **kwargs): return io.NodeOutput(torch.ones(1, 512, 512), False, 0, 0) +class KritaSelectionBounds(io.ComfyNode): + @classmethod + def define_schema(cls): + return io.Schema( + node_id="ETN_KritaSelectionBounds", + display_name="Krita Selection Bounds", + category="krita", + outputs=[ + io.Int.Output("x", "x"), + io.Int.Output("y", "y"), + io.Int.Output("width", "width"), + io.Int.Output("height", "height"), + ], + ) + + @classmethod + def execute(cls, **kwargs): + return io.NodeOutput(0, 0, 512, 512) + + class KritaImageLayer(io.ComfyNode): @classmethod def define_schema(cls):