Compare commits

...
14 Commits
Author SHA1 Message Date
bigcat88 512e2d40f3 added "required_memory_gb" field to Flow metadata 2025-01-11 14:50:49 +02:00
bigcat88 720ff188cc changed default value of "is_macos_supported" to True 2025-01-10 09:12:38 +02:00
Alexander Piskun 6a12858acc added "macos_supported" flag to Flow metadata 2025-01-09 23:16:34 +03:00
Alexander Piskun 64d856dab6 added logo
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-10-20 15:08:16 +03:00
Alexander Piskun 9ac320b50b added PublisherId
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-10-20 00:38:31 +03:00
Alexander Piskun 83f12f1389 Merge pull request #3 from ComfyNodePRs/pyproject
Add pyproject.toml for Custom Node Registry
2024-10-20 00:36:44 +03:00
Alexander Piskun d4e2312d6c Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2024-10-20 00:36:14 +03:00
Alexander Piskun 1f7e3104be added fields for prompt translations feature
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-09-27 22:37:01 +03:00
Alexander Piskun 895c4de920 disabled rounding for VixUiRangeFloat and VixUiRangeScaleFloat (3)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-08-26 16:28:31 +03:00
Alexander Piskun 0186662ea3 disabled rounding for VixUiRangeFloat and VixUiRangeScaleFloat (2)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-08-26 14:42:24 +03:00
Alexander Piskun 9dc9633474 disabled rounding for VixUiRangeFloat and VixUiRangeScaleFloat
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-08-26 14:33:41 +03:00
Alexander Piskun 3648146f35 added lazy_loading to Logic nodes
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
2024-08-24 12:17:42 +03:00
snomiao 711fdb6a33 chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-07-31 13:40:12 +00:00
snomiao 28f903d0d1 chore(publish): Add Github Action for Publishing to Comfy Registry 2024-07-31 13:40:11 +00:00
3 changed files with 79 additions and 16 deletions
+24
View File
@@ -0,0 +1,24 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
- master
paths:
- "pyproject.toml"
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
# if this is a forked repository. Skipping the workflow.
if: github.event.repository.fork == false
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+44 -16
View File
@@ -41,13 +41,13 @@ class VixUiRangeFloat:
def INPUT_TYPES(cls):
return {
"required": {
"value": ("FLOAT", {"default": 4.0}),
"value": ("FLOAT", {"default": 4.0, "step": 0.01, "round": False}),
"display_name": ("STRING", {"default": "Display Range"}),
"optional": ("BOOLEAN", {"default": True}),
"advanced": ("BOOLEAN", {"default": True}),
"min": ("FLOAT", {"default": 1.0}),
"max": ("FLOAT", {"default": 9.0}),
"step": ("FLOAT", {"default": 0.1}),
"min": ("FLOAT", {"default": 1.0, "step": 0.01, "round": False}),
"max": ("FLOAT", {"default": 9.0, "step": 0.01, "round": False}),
"step": ("FLOAT", {"default": 0.1, "step": 0.01, "round": False}),
"order": ("INT", {"default": 99}),
"custom_id": ("STRING", {"default": ""}),
},
@@ -70,14 +70,14 @@ class VixUiRangeScaleFloat:
def INPUT_TYPES(cls):
return {
"required": {
"value": ("FLOAT", {"default": 4.0}),
"value": ("FLOAT", {"default": 4.0, "step": 0.01, "round": False}),
"display_name": ("STRING", {"default": "Image Size Factor"}),
"optional": ("BOOLEAN", {"default": True}),
"advanced": ("BOOLEAN", {"default": True}),
"source_input_name": ("STRING", {"default": ""}),
"min": ("FLOAT", {"default": 1.0}),
"max": ("FLOAT", {"default": 9.0}),
"step": ("FLOAT", {"default": 0.1}),
"min": ("FLOAT", {"default": 1.0, "step": 0.01, "round": False}),
"max": ("FLOAT", {"default": 9.0, "step": 0.01, "round": False}),
"step": ("FLOAT", {"default": 0.1, "step": 0.01, "round": False}),
"order": ("INT", {"default": 99}),
"custom_id": ("STRING", {"default": ""}),
},
@@ -167,6 +167,7 @@ class VixUiPrompt:
},
"optional": {
"hidden": ("BOOLEAN", {"default": False}),
"translatable": ("BOOLEAN", {"default": False}),
},
}
RETURN_TYPES = ("STRING",)
@@ -191,8 +192,8 @@ class VixUiCheckboxLogic:
"custom_id": ("STRING", {"default": ""}),
},
"optional": {
"input_off_state": (any_typ,),
"input_on_state": (any_typ,),
"input_off_state": (any_typ, {"lazy": True}),
"input_on_state": (any_typ, {"lazy": True}),
"hidden": ("BOOLEAN", {"default": False}),
},
}
@@ -208,6 +209,12 @@ class VixUiCheckboxLogic:
return (kwargs.get("input_off_state", None),)
return (kwargs.get("input_on_state", None),)
@staticmethod
def check_lazy_status(state, **kwargs):
if state is False:
return ["input_off_state"]
return ["input_on_state"]
class VixUiListLogic:
@classmethod
@@ -223,12 +230,12 @@ class VixUiListLogic:
"custom_id": ("STRING", {"default": ""}),
},
"optional": {
"input_first": (any_typ,),
"input_second": (any_typ,),
"input_third": (any_typ,),
"input_fourth": (any_typ,),
"input_fifth": (any_typ,),
"input_sixth": (any_typ,),
"input_first": (any_typ, {"lazy": True}),
"input_second": (any_typ, {"lazy": True}),
"input_third": (any_typ, {"lazy": True}),
"input_fourth": (any_typ, {"lazy": True}),
"input_fifth": (any_typ, {"lazy": True}),
"input_sixth": (any_typ, {"lazy": True}),
"hidden": ("BOOLEAN", {"default": False}),
},
}
@@ -256,6 +263,24 @@ class VixUiListLogic:
return (kwargs["input_sixth"],)
raise RuntimeError("Workflow logic error")
@staticmethod
def check_lazy_status(default_value, **kwargs):
list_with_values: list = json.loads(kwargs["possible_values"])
index_to_return = list_with_values.index(default_value)
if index_to_return == 0:
return ["input_first"]
if index_to_return == 1:
return ["input_second"]
if index_to_return == 2:
return ["input_third"]
if index_to_return == 3:
return ["input_fourth"]
if index_to_return == 4:
return ["input_fifth"]
if index_to_return == 5:
return ["input_sixth"]
raise RuntimeError("Workflow logic error")
class VixUiWorkflowMetadata:
@classmethod
@@ -276,6 +301,9 @@ class VixUiWorkflowMetadata:
"requires": ("STRING", {"default": "[]", "multiline": True}),
"is_seed_supported": ("BOOLEAN", {"default": True}),
"is_count_supported": ("BOOLEAN", {"default": True}),
"is_translations_supported": ("BOOLEAN", {"default": False}),
"is_macos_supported": ("BOOLEAN", {"default": True}),
"required_memory_gb": ("FLOAT", {"default": 0.0, "step": 0.1, "round": False}),
}
}
RETURN_TYPES = ("STRING",)
+11
View File
@@ -0,0 +1,11 @@
[project]
name = "comfyui-visionatrix"
description = "The ComfyUI-Visionatrix nodes are designed for convenient ComfyUI to [a/Visionatrix](https://github.com/Visionatrix/Visionatrix) workflow support migration, in particular to extract prompt input params (input, textarea, checkbox, select, range, file) to be used in simplified Visionatrix UI."
version = "1.0.1"
license = {file = "LICENSE"}
urls.Repository = "https://github.com/Visionatrix/ComfyUI-Visionatrix"
[tool.comfy]
PublisherId = "visionatrix"
DisplayName = "ComfyUI-Visionatrix"
Icon = "https://raw.githubusercontent.com/Visionatrix/VixFlowsDocs/main/screenshots/logo_org_400x400.png"