Add tooltips to VACE Mode Select node

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 20:09:02 +01:00
parent 508f2ec404
commit ec15f2374b

View File

@@ -6,9 +6,16 @@ class VACEModeSelect:
@classmethod
def INPUT_TYPES(cls):
mode_list = " | ".join(f"{i}={m}" for i, m in enumerate(VACE_MODES))
return {
"required": {
"index": ("INT", {"default": 0, "min": 0, "max": len(VACE_MODES) - 1, "step": 1}),
"index": ("INT", {
"default": 0,
"min": 0,
"max": len(VACE_MODES) - 1,
"step": 1,
"tooltip": f"Mode index: {mode_list}",
}),
},
}
@@ -16,6 +23,7 @@ class VACEModeSelect:
RETURN_NAMES = ("mode",)
FUNCTION = "select"
CATEGORY = "VACE Tools"
DESCRIPTION = "Select a VACE mode by integer index (0-9). Useful when driving mode selection from another node's integer output instead of a dropdown."
def select(self, index):
index = max(0, min(index, len(VACE_MODES) - 1))