2023-09-28 12:00:27 -04:00
2023-09-28 12:00:27 -04:00
2023-09-25 22:11:10 -04:00
2023-09-25 22:11:10 -04:00
2023-09-28 12:06:21 -04:00

SRL's nodes

This is a collection of nodes I find useful.

Nodes

SRL Conditional Interrupt

Screenshot of SrlConditionalInterrupt

Interrupts the currently running prompt if the "interrupt" input is true. Also passes through an item of any type for sequencing purposes.

SRL Format String

Screenshot of SrlFormatString

Format a string using Python's string format syntax. You can use both positional and named argument syntax.

SRL Eval

Screenshot of SrlEval

Evaluate arbitrary Python code as a function. Code is evaluated as:

def func({parameters}):
    code\_line1
    code\_line2
    ...

Right now this uses the globals dictionary from the module, so be careful about anything that might mutate globals, such as importing modules. I don't have any intention to try to make it secure because ComfyUI itself isn't remotely secure, but I will probably try to improve isolation at some point in the future to prevent unintended problems. PRs gladly accepted if you have need for this.

S
Description
No description provided
Readme
396 KiB
Languages
Python 100%