Skip to content

Commit

Permalink
missing optional from base class
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorano committed Feb 1, 2025
1 parent 6a32897 commit 8c5d200
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 6 additions & 12 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" }]
Expand Down Expand Up @@ -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"

0 comments on commit 8c5d200

Please sign in to comment.