mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 12:42:11 -03:00
22 lines
752 B
Python
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,) |