commit RGBValue and Seed node, image scale nodes increases width and height output

This commit is contained in:
chflame
2024-05-13 12:30:00 +08:00
parent a984f5db38
commit 29cc4dc352
16 changed files with 131 additions and 33 deletions
+21 -3
View File
@@ -2,6 +2,23 @@ from .imagefunc import AnyType
any = AnyType("*")
class SeedNode:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(self):
return {"required": {
"seed":("INT", {"default": 0, "min": 0, "max": 99999999999999999999, "step": 1}),
},}
RETURN_TYPES = ("INT",)
RETURN_NAMES = ("seed",)
FUNCTION = 'seed_node'
CATEGORY = '😺dzNodes/LayerUtility'
def seed_node(self, seed):
return (seed,)
class BooleanOperator:
def __init__(self):
@@ -143,14 +160,14 @@ class BooleanNode:
NODE_CLASS_MAPPINGS = {
"LayerUtility: BooleanOperator": BooleanOperator,
"LayerUtility: NumberCalculator": NumberCalculator,
"LayerUtility: TextBox": TextBoxNode,
"LayerUtility: Integer": IntegerNode,
"LayerUtility: Float": FloatNode,
"LayerUtility: Boolean": BooleanNode
"LayerUtility: Boolean": BooleanNode,
"LayerUtility: Seed": SeedNode
}
NODE_DISPLAY_NAME_MAPPINGS = {
@@ -159,5 +176,6 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"LayerUtility: TextBox": "LayerUtility: TextBox",
"LayerUtility: Integer": "LayerUtility: Integer",
"LayerUtility: Float": "LayerUtility: Float",
"LayerUtility: Boolean": "LayerUtility: Boolean"
"LayerUtility: Boolean": "LayerUtility: Boolean",
"LayerUtility: Seed": "LayerUtility: Seed"
}