admin管理员组文章数量:1122846
This custom node have a first option (main) to select the type of other options. I can´t get the condition to act as a selector to show a serie of options or the other.
`@classmethod def INPUT_TYPES(s):
return {
"required": {
"mode": (["text", "file"],)
...
IF mode == "text":
"text_content": ("STRING", {
"multiline": False,
"default": "Text",
})
ELSE:
"file_path": ("STRING", {
"multiline": False,
"default": "/",
})
},
}`
i also can´t find an existing custom node that offers this type of selection and auto-update... anyone?
i tried various options, including suggestions from Perpexity, without success.
本文标签:
版权声明:本文标题:python - Comfyui, how to create a custom node that dynamically updates the sub-options based on the selected main option - Stack 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307288a1933258.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论