This commit is contained in:
JO Jr.
2024-01-27 11:55:40 -05:00
parent 40e4795685
commit 76b36449df
3 changed files with 20 additions and 2 deletions
+12 -1
View File
@@ -1 +1,12 @@
# ComfyUI-RandomSize
# ComfyUI-RandomSize
A ComfyUI custom node that randomly selects a height and width pair from a list in a config file
##
Search for "RandomSize" in the Manager or:
```
cd [path to ComfyUI]/custom_nodes
git clone https://github.com/JerryOrbachJr/ComfyUI-RandomSize.git
```
+7
View File
@@ -1,4 +1,11 @@
"""
@author: JerryOrbachJr
@title: Random Size
@nickname: Random Size
@description: A ComfyUI custom node that randomly selects a height and width pair from a list in a config file
"""
from .random_size import RandomSize
LIVE_NODE_CLASS_MAPPINGS = {
"JOJR_RandomSize": RandomSize,
+1 -1
View File
@@ -7,7 +7,7 @@ def read_config(item):
return yaml.safe_load(file)[item]
class RandomSize:
CATEGORY = "quicknodes"
CATEGORY = "utils"
RETURN_TYPES = ("INT","INT")
RETURN_NAMES = ("width","height")
FUNCTION = "func"