Updated sampler default values, added boolean logic and reverse
This commit is contained in:
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user