first commit

This commit is contained in:
justumen
2024-07-06 12:05:16 +02:00
commit 643bf5d843
74 changed files with 1553 additions and 0 deletions

24
loop_float.py Normal file
View File

@@ -0,0 +1,24 @@
class LoopFloat:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"from_this": ("FLOAT", {"default": 0.00, "min": 0.00, "max": 1000.00, "step": 0.01}),
"to_that": ("FLOAT", {"default": 10.00, "min": 0.00, "max": 1000.00, "step": 0.01}),
"jump": ("FLOAT", {"default": 1.00, "min": 0.00, "max": 1000.00, "step": 0.01}),
},
}
RETURN_TYPES = ("FLOAT",)
OUTPUT_IS_LIST = (True, False)
FUNCTION = "create_loop_float"
CATEGORY = "Bjornulf"
def create_loop_float(self, from_this, to_that, jump):
range_values = []
current_value = from_this
while current_value <= to_that:
range_values.append(round(current_value, 2)) # Round to two decimal places
current_value += jump
return (range_values,)