mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
first commit
This commit is contained in:
21
loop_basic_batch.py
Normal file
21
loop_basic_batch.py
Normal file
@@ -0,0 +1,21 @@
|
||||
class LoopBasicBatch:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"nb_loops": ("INT", {"default": 1, "min": 0, "max": 1000, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("INT",)
|
||||
OUTPUT_IS_LIST = (True, False)
|
||||
FUNCTION = "create_loop_basic_batch"
|
||||
CATEGORY = "Bjornulf"
|
||||
|
||||
def create_loop_basic_batch(self, nb_loops):
|
||||
range_values = list()
|
||||
while nb_loops > 0:
|
||||
range_values.append(1)
|
||||
nb_loops -= 1
|
||||
return (range_values,)
|
||||
Reference in New Issue
Block a user