Added Noise Plus Blend. Integer Setting, Choose Upscale Model Nodes

This commit is contained in:
ControlAltAI
2024-09-17 23:06:52 +05:30
parent a3f2070f4e
commit 1494bca459
4 changed files with 159 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
class IntegerSettings:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"setting": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable"}),
},
}
RETURN_TYPES = ("INT",)
RETURN_NAMES = ("setting_value",)
FUNCTION = "integer_settings"
CATEGORY = "ControlAltAI Nodes/Logic"
def integer_settings(self, setting):
# Handle the single boolean setting
status = 2 if setting else 1
return (status,)
NODE_CLASS_MAPPINGS = {
"IntegerSettings": IntegerSettings,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"IntegerSettings": "Integer Settings",
}