Updated sampler default values, added boolean logic and reverse

This commit is contained in:
ControlAltAI
2024-08-19 14:59:20 +05:30
parent a058cc50a8
commit f0a7f37aa6
4 changed files with 55 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
class BooleanReverse:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"boolean": ("BOOLEAN", {"default": True}),
},
}
RETURN_TYPES = ("BOOLEAN",)
FUNCTION = "reverse_boolean"
CATEGORY = "ControlAltAI Nodes/Logic"
def reverse_boolean(self, boolean):
return (not boolean,)
NODE_CLASS_MAPPINGS = {
"BooleanReverse": BooleanReverse,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"BooleanReverse": "Boolean Reverse",
}