From 8c5d2009631c43488f2bb2a8115bfbb80e0adccf Mon Sep 17 00:00:00 2001 From: "Alexander G. Morano" Date: Sat, 1 Feb 2025 17:44:59 -0500 Subject: [PATCH] missing optional from base class --- README.md | 3 ++- __init__.py | 18 ++++++------------ pyproject.toml | 4 ++-- 3 files changed, 10 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f607344..71072bd 100644 --- a/README.md +++ b/README.md @@ -94,9 +94,10 @@ You can colorize nodes via their `title` or `body`. This can be done to the node ## UPDATES -**2024/02/01** @1.2.64: +**2024/02/01** @1.2.65: * patched `MIDI FILTER EZ` to work for all filters not just the first found * cleanup pyproject for registry +* proper logo for registry **2024/02/01** @1.2.63: * Fixed `MIDI FILTER` to parse all filters for trigger diff --git a/__init__.py b/__init__.py index b1cd558..e0f6796 100644 --- a/__init__.py +++ b/__init__.py @@ -426,6 +426,7 @@ def VALIDATE_INPUTS(cls, *arg, **kw) -> bool: @classmethod def INPUT_TYPES(cls, prompt:bool=False, extra_png:bool=False, dynprompt:bool=False) -> dict: data = { + "optional": {}, "required": {}, "hidden": { "ident": "UNIQUE_ID" @@ -443,18 +444,11 @@ def INPUT_TYPES(cls, prompt:bool=False, extra_png:bool=False, dynprompt:bool=Fal class JOVImageNode(JOVBaseNode): RETURN_TYPES = ("IMAGE", "IMAGE", "MASK") RETURN_NAMES = (Lexicon.IMAGE, Lexicon.RGB, Lexicon.MASK) - - @classmethod - def INPUT_TYPES(cls) -> dict: - d = super().INPUT_TYPES() - d = deep_merge(d, { - "outputs": { - 0: ("IMAGE", {"tooltips":"Full channel [RGBA] image. If there is an alpha, the image will be masked out with it when using this output."}), - 1: ("IMAGE", {"tooltips":"Three channel [RGB] image. There will be no alpha."}), - 2: ("MASK", {"tooltips":"Single channel mask output."}), - } - }) - return Lexicon._parse(d, cls) + OUTPUT_TOOLTIPS = ( + "Full channel [RGBA] image. If there is an alpha, the image will be masked out with it when using this output.", + "Three channel [RGB] image. There will be no alpha.", + "Single channel mask output." + ) class DynamicInputType(dict): """A special class to make flexible nodes that pass data to our python handlers. diff --git a/pyproject.toml b/pyproject.toml index fdba871..fd19f81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "jovimetrix" description = "Integrates Webcam, MIDI, Spout and GLSL shader support. Animation via tick. Parameter manipulation with wave generator. Math operations with Unary and Binary support. Value conversion for all major types (int, string, list, dict, Image, Mask). Shape mask generation, image stacking and channel ops, batch splitting, merging and randomizing, load images and video from anywhere, dynamic bus routing with a single node, export support for GIPHY, save output anywhere! flatten, crop, transform; check colorblindness, make stereogram or stereoscopic images, or liner interpolate values and more." -version = "1.2.64" +version = "1.2.65" license = { file = "LICENSE" } readme = "README.md" authors = [{ name = "Alexander G. Morano", email = "amorano@gmail.com" }] @@ -52,4 +52,4 @@ Issues = "https://github.com/Amorano/Jovimetrix/issues" [tool.comfy] PublisherId = "amorano" DisplayName = "Jovimetrix" -Icon = "https://avatars.githubusercontent.com/u/225178?s=48&v=4" +Icon = "https://github.com/user-attachments/assets/d36f13c9-e924-4878-9422-626b2d770fce"