Initial commit
This commit is contained in:
9
nodes/reenforcer/__init__.py
Normal file
9
nodes/reenforcer/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from .reenforcer import ReEnforcer
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"ReEnforcer": ReEnforcer
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"ReEnforcer": "ReEnforcer"
|
||||
}
|
||||
18
nodes/reenforcer/reenforcer.py
Normal file
18
nodes/reenforcer/reenforcer.py
Normal file
@@ -0,0 +1,18 @@
|
||||
class ReEnforcer:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"string": ("STRING", {"multiline": True}),
|
||||
"count": ("INT", {"default": 1, "min": 1, "max": 100}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING",)
|
||||
RETURN_NAMES = ("string",)
|
||||
FUNCTION = "reenforce"
|
||||
CATEGORY = "AODH Pack"
|
||||
|
||||
def reenforce(self, string, count):
|
||||
result = ", ".join([string] * count)
|
||||
return (result,)
|
||||
Reference in New Issue
Block a user