Files
Bjornulf_custom_nodes/write_image_character.py
2024-07-06 12:05:16 +02:00

22 lines
752 B
Python

class WriteImageCharacter:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"description": ("STRING", {"multiline": True}),
"action": ("STRING", {"multiline": False}),
"emotion": ("STRING", {"multiline": False}),
"clothes": ("STRING", {"multiline": False}),
},
}
# RETURN_TYPES = ("STRING",)
RETURN_TYPES = ("BJORNULF_CHARACTER",)
RETURN_NAMES = ("character_details",)
FUNCTION = "write_image_character"
OUTPUT_NODE = True
CATEGORY = "Bjornulf"
def write_image_character(self, description, action, emotion, clothes):
text = f"{description}, {action}, {emotion}, {clothes}"
return (text,)