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:
27
write_image_environment.py
Normal file
27
write_image_environment.py
Normal file
@@ -0,0 +1,27 @@
|
||||
class WriteImageEnvironment:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"art_style": (["drawing", "digital art", "photography"],),
|
||||
"location": ("STRING", {"multiline": True}),
|
||||
"lighting": ("STRING", {"multiline": True}),
|
||||
"camera_angle": ("STRING", {"multiline": True}),
|
||||
},
|
||||
"optional": {
|
||||
"other": ("STRING", {"multiline": True, "forceInput": True},),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING",)
|
||||
RETURN_NAMES = ("text",)
|
||||
FUNCTION = "write_image_environment"
|
||||
OUTPUT_NODE = True
|
||||
CATEGORY = "Bjornulf"
|
||||
|
||||
def write_image_environment(self, art_style, location, lighting, camera_angle, **kwargs):
|
||||
text = f"Art Style: {art_style}\n\n"
|
||||
text += f"Location:\n{location}\n\n"
|
||||
text += f"Lighting:\n{lighting}\n\n"
|
||||
text += f"Camera Angle:\n{camera_angle}\n\n"
|
||||
return (text,)
|
||||
Reference in New Issue
Block a user