Initial commit: Image Aspect Size and Multi Switch nodes
- ImageAspectSize: reads input image dimensions and outputs width/height scaled to a target longest-side, snapped to multiples of 8, with a flip toggle for portrait/landscape rotation - MultiSwitch: any-type switch node with dynamic slot pairs (JS-driven add/remove), colour-coded active/inactive sides, and clean labelling
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
from .nodes.image_aspect_size import ImageAspectSize
|
||||
from .nodes.multi_switch import MultiSwitch
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"ImageAspectSize": ImageAspectSize,
|
||||
"MultiSwitch": MultiSwitch,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"ImageAspectSize": "Image Aspect Size",
|
||||
"MultiSwitch": "Multi Switch",
|
||||
}
|
||||
|
||||
WEB_DIRECTORY = "./js"
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
Reference in New Issue
Block a user