Menu Switch Node#
The Menu Switch node outputs one of its inputs depending on a menu selection. Only the input that is passed through the node is computed.
The available menu entries are defined by the user. Menu items can be added and removed, as well as renamed and reordered in the editor side bar. Renaming a menu entry keeps existing links of the matching input socket.
Меню можно использовать в группах нод и пользовательском интерфейсе модификатора нод. Соединение входа меню с нодой Group Input сделает меню групповым входом. Для работы, порт меню в группе нод, узле перенаправления или других транзитных нодах должен быть подключен к ноде Menu Switch. Неподключенный порт меню по умолчанию отображает пустое меню.
Connecting multiple Menu Switch nodes to the same output socket creates a conflict (even when the menu entries are the same). To avoid this a menu switch can be wrapped in a node group. Multiple node groups of the same type can be connected to the same menu, since they contain the same menu switch node.
См.также
The Index Switch Node is similar but it exposes the choices as an integer index.
Входы#
- Меню
Determines which of the input options below will be passed through.
- Item Inputs
One input is created for every menu entry. The input is used when the matching option is selected. Items can be renamed by Ctrl-LMB on the socket name or in the nodes Properties panel.
Свойства#
- Тип (type)
Определяет тип данных, которые обрабатываются узлом.
Выходы#
- Вывод (output)
One of the inputs without any modifications.