Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NodeKO:
- def __init__(self):
- pass
- @classmethod
- def INPUT_TYPES(s):
- return {
- "required": {
- "text": ("STRING", {"default":"Hey Hey!"}),
- "text2": ("STRING", {"forceInput" True}),
- },
- }
- RETURN_TYPES = ("STRING","INT", "FLOAT", 'LATENT', "CONDITIONING", "IMAGE", "MODEL")
- RETURN_NAMES = ("TxtO", "IntO", "FloatO", "Latent output. Really cool, huh?", "A condition" , "Our image." , "Mo mo modell!!!")
- FUNCTION = "test"
- #OUTPUT_NODE = False
- CATEGORY = "nodeKO"
- def test(self):
- return ()
- # A dictionary that contains all nodes you want to export with their names
- # NOTE: names should be globally unique
- NODE_CLASS_MAPPINGS = {
- "My KO Node": MyNode
- }
- # A dictionary that contains the friendly/humanly readable titles for the nodes
- NODE_DISPLAY_NAME_MAPPINGS = {
- "FirstNode": "My First Node"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement