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

23
loop_samplers.py Normal file
View File

@@ -0,0 +1,23 @@
import comfy
class LoopSamplers:
@classmethod
def INPUT_TYPES(cls):
samplers = ["ALL SAMPLERS"] + list(comfy.samplers.KSampler.SAMPLERS)
return {
"required": {
"sampler_name": (samplers,),
}
}
RETURN_TYPES = (comfy.samplers.KSampler.SAMPLERS,)
RETURN_NAMES = ("sampler_name",)
OUTPUT_IS_LIST = (True,)
FUNCTION = "create_loop_sampler"
CATEGORY = "Bjornulf"
def create_loop_sampler(self, sampler_name):
if sampler_name == "ALL SAMPLERS":
return (list(comfy.samplers.KSampler.SAMPLERS),)
else:
return ([sampler_name],)