Skip to content

Commit

Permalink
1.3.0 -- ready for splitting into separate repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
Amorano committed Feb 4, 2025
1 parent 44aa865 commit ae923ab
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,21 @@ If those nodes have descriptions written in HTML or Markdown, they will be conve

### NODE COLORS

You can colorize nodes via their `title` or `body`. This can be done to the node's `category` as well, so you can quickly color groups of nodes.
You can colorize nodes via their `title background`, `node body` or `title text`. This can be done to the node's `category` as well, so you can quickly color groups of nodes.

<div align="center">
<img src="https://github.com/user-attachments/assets/8de9561a-b231-4a49-a63a-4fd5fdba64d9" alt="node color panel" width="512"/>
</div>

## UPDATES

**2024/02/03** @1.3.0:
* added colorizer option for `title text`
* settings deprecated and removed from ComfyUI settings panel
* colorizer setting migrated to ComfyUI per user settings
* automatic contrast option for non-colored nodes
* all tooltips migrated to ComfyUI core tooltips

**2024/02/02** @1.2.67:
* fixed `GLSL` nodes missing from parse due to category sort

Expand Down
16 changes: 10 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,12 @@ def json2html(json_dict: dict) -> str:
# Generate output content
output_rows = []
for k, v in json_dict['output_parameters'].items():
tool = Lexicon._tooltipsDB.get(k, "")
# tool = '<br>'.join(textwrap.wrap(tool, 65))
data = v.split('$')
#desc = '<br>'.join(textwrap.wrap(data[1], 60))
output_rows.append(HTML_output_row.substitute(
name=html.escape(k),
type=html.escape(v),
description=tool
type=html.escape(data[0]),
description=html.escape(data[1])
))

# Fill in the main template
Expand Down Expand Up @@ -656,9 +656,13 @@ def get_node_info(node_data: dict) -> Dict[str, Any]:
]

output_parameters = {}
tooltips = node_data.get('output_tooltips', [])
return_names = [t.lower() for t in node_data.get('output_name', [])]
for t, n in zip(return_types, return_names):
output_parameters[n] = ', '.join([x.strip() for x in t.split(',')])
for name, typ, tip in zip(return_names, return_types, tooltips):
if tip == "":
tip = Lexicon._tooltipsDB.get(name, "")
output_parameters[name] = '$'.join([typ, tip])


data = {
"class": node_data['name'],
Expand Down
2 changes: 1 addition & 1 deletion core/create_glsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def INPUT_TYPES(cls) -> dict:

data.update(opts)
original_params['optional'] = data
return Lexicon._parse(original_params, cls)
return Lexicon._parse(original_params)

def import_dynamic() -> Tuple[str,...]:
ret = []
Expand Down
2 changes: 1 addition & 1 deletion 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.67"
version = "1.3.0"
license = { file = "LICENSE" }
readme = "README.md"
authors = [{ name = "Alexander G. Morano", email = "[email protected]" }]
Expand Down

0 comments on commit ae923ab

Please sign in to comment.