Added node descriptions
This commit is contained in:
@@ -33,6 +33,7 @@ class RSAnySwitch:
|
||||
RETURN_NAMES = ("output",)
|
||||
FUNCTION = "switch_input"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
DESCRIPTION = "Dynamic switch node that allows you to switch between multiple inputs of ANY data type"
|
||||
|
||||
def switch_input(self, active_input: str, **kwargs) -> Tuple[Any]:
|
||||
if active_input in kwargs and kwargs[active_input] is not None:
|
||||
|
||||
@@ -99,6 +99,7 @@ class RSCollage:
|
||||
FUNCTION = "composite"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "Interactive node for overlaying images with real-time positioning, scaling, rotation, and edge feathering directly on the canvas"
|
||||
|
||||
def remove_black_corners(self, img):
|
||||
if img.mode != 'RGBA': return img
|
||||
|
||||
@@ -62,6 +62,7 @@ class RSCropImage:
|
||||
FUNCTION = "crop_image"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "An interactive node that allows you to visually crop an image directly within the node interface"
|
||||
|
||||
def crop_image(self, image, multiple_mode=False, multiple_of="8",
|
||||
mask=None, crop_data="{}", unique_id=None, prompt_id=None):
|
||||
|
||||
@@ -64,6 +64,7 @@ class RSComparer(PreviewImage):
|
||||
FUNCTION = "compare_images"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "A node that provides an interactive image comparison interface with zoom and pan controls"
|
||||
|
||||
def compare_images(
|
||||
self,
|
||||
|
||||
@@ -104,6 +104,7 @@ class RaykoImageSelect:
|
||||
FUNCTION = "select_batch"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "Node for Interactive Batch Image Selection"
|
||||
|
||||
def select_batch(self, images, unique_id):
|
||||
unique_id = str(unique_id)
|
||||
|
||||
@@ -46,6 +46,7 @@ class LoadImageWithText:
|
||||
FUNCTION = "process"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "Node embeds any hidden text into the image that can be used later"
|
||||
|
||||
def process(self, mode, image, text_input="", filename_prefix="ComfyUI"):
|
||||
try:
|
||||
|
||||
@@ -35,6 +35,7 @@ class RSInsertCropImage:
|
||||
FUNCTION = "insert_crop"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "Node that allows insert a previously cut fragment back into the original image"
|
||||
|
||||
def insert_crop(self, original_image, cropped_image, crop_data="{}"):
|
||||
try:
|
||||
|
||||
@@ -59,6 +59,7 @@ class RaykoIntermediateSplineMask:
|
||||
FUNCTION = "create_mask"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "An interactive node for creating intermediate spline masks"
|
||||
|
||||
def create_mask(self, image, coordinates="[]", unique_id=None, prompt_id=None):
|
||||
unique_id = str(unique_id) if unique_id else "unknown"
|
||||
|
||||
@@ -29,6 +29,7 @@ class RS_Last_Frame:
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "get_last_frame"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
DESCRIPTION = "A lightweight node that extracts the last frame from any video input"
|
||||
|
||||
def get_last_frame(self, video_frames):
|
||||
frames = None
|
||||
|
||||
@@ -47,6 +47,7 @@ class RaykoLoopSwitchSeed:
|
||||
FUNCTION = "process"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "A combined node for generating a sequence of values with automatic switching"
|
||||
|
||||
def process(self, start_at_step, end_at_step, jump, control_before_generate,
|
||||
value_1, value_2, value_3, value_4, value_5,
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ class LoadImageRGBA:
|
||||
RETURN_NAMES = ("rgba",)
|
||||
FUNCTION = "load_image"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
DESCRIPTION = "Загружает изображение с сохранением альфа-канала (RGBA). Поддерживает PNG, WEBP, TIFF с прозрачностью."
|
||||
DESCRIPTION = "Loads an image with the alpha channel (RGBA) preserved. Supports PNG, WEBP, TIFF with transparency"
|
||||
|
||||
def load_image(self, image):
|
||||
image_path = os.path.join(folder_paths.get_input_directory(), image)
|
||||
|
||||
@@ -132,6 +132,7 @@ class RSSaveImage:
|
||||
FUNCTION = "save_images"
|
||||
OUTPUT_NODE = True
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
DESCRIPTION = "Node for adding explanatory text to an image"
|
||||
|
||||
def save_images(self, images, node_data=None, prompt=None, extra_pnginfo=None):
|
||||
default_data = {
|
||||
|
||||
@@ -127,6 +127,7 @@ class SaveImagePair:
|
||||
FUNCTION = "save_images_pair"
|
||||
OUTPUT_NODE = True
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
DESCRIPTION = "Node to save original and final images in a single image, while maintaining the workflow within the image"
|
||||
|
||||
def save_images_pair(self, reference, final, filename_prefix="ThumbnailPair/img", concat_type="horizontal",
|
||||
text1="", text2="", footer_height=100, font_name=None, font_size=50,
|
||||
|
||||
@@ -44,6 +44,7 @@ class RaykoSplineMask:
|
||||
FUNCTION = "create_mask"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
OUTPUT_NODE = True
|
||||
DESCRIPTION = "A node for load image and creating a spline mask"
|
||||
|
||||
def create_mask(self, image, coordinates="[]"):
|
||||
img_path = None
|
||||
|
||||
@@ -236,6 +236,7 @@ class RS_TextOverlay:
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "apply_text"
|
||||
CATEGORY = "🦊 RaykoStudio"
|
||||
DESCRIPTION = "Node allows you to overlay text on images using masks"
|
||||
|
||||
def __init__(self):
|
||||
self.debug = False
|
||||
|
||||
Reference in New Issue
Block a user