mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
first commit
This commit is contained in:
22
write_image_character.py
Normal file
22
write_image_character.py
Normal file
@@ -0,0 +1,22 @@
|
||||
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,)
|
||||
Reference in New Issue
Block a user