From a95d6e172ba60b28b40b467a712e13d922ca35e1 Mon Sep 17 00:00:00 2001 From: FizzleDorf <1fizzledorf@gmail.com> Date: Sat, 22 Apr 2023 03:13:35 -0400 Subject: [PATCH] to_strength removed, it is now normalized --- nodes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index f0816921e..4039a88cf 100644 --- a/nodes.py +++ b/nodes.py @@ -62,8 +62,8 @@ class ConditioningAverage : @classmethod def INPUT_TYPES(s): return {"required": {"conditioning_from": ("CONDITIONING", ), "conditioning_to": ("CONDITIONING", ), - "conditioning_from_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.1}), - "conditioning_to_strength": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 10.0, "step": 0.1}) + "conditioning_from_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.1}), + #"conditioning_to_strength": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 10.0, "step": 0.1}) }} RETURN_TYPES = ("CONDITIONING",) FUNCTION = "addWeighted" @@ -78,7 +78,8 @@ class ConditioningAverage : # c.append(n) # return (c, ) - def addWeighted(self, conditioning_from, conditioning_to, conditioning_from_strength, conditioning_to_strength): + def addWeighted(self, conditioning_from, conditioning_to, conditioning_from_strength): + conditioning_to_strength = (1-conditioning_from_strength) conditioning_from_tensor = conditioning_from[0][0] conditioning_to_tensor = conditioning_to[0][0] output = conditioning_from