Difference between revisions of "Multiplex (LogiX node)"
Jump to navigation
Jump to search
m |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <languages></languages> |
− | [[ | + | <translate> |
− | < | + | <!--T:1--> |
− | + | {{Infobox Logix Node | |
− | + | | Name = Multiplex | |
+ | | Image =[[File: Multiplexer`1Node.png | noframe | 128px | 'Multiplex' LogiX node ]] | ||
+ | | Input0Type = Float | Input0Name = [0] | ||
+ | | Input1Type = Float | Input1Name = [1] | ||
+ | | Input2Type = Int | Input2Name = Index | ||
+ | | Output0Type = Float | Output0Name = * | ||
+ | | Output1Type = Int | Output1Name = InputCount | ||
+ | }} | ||
+ | |||
+ | <!--T:2--> | ||
+ | The '''Multiplex''' node outputs one of the multiple <code>Operands</code> input values determined by the <code>Index</code> input. | ||
+ | |||
+ | == Usage == <!--T:3--> | ||
+ | The index corresponding to each input is visible in square brackets in the respective input name. | ||
+ | |||
+ | |||
+ | <!--T:6--> | ||
+ | The <code>InputCount</code> output provides the current number of inputs. | ||
+ | |||
+ | |||
+ | <!--T:7--> | ||
+ | This node initially had an unset dummy datatype when spawned from the node browser. It will overload to the correct datatype when any value or reference typed value is connected. If the <code>Index</code> value is out of range, i.e. it is less than 0 or greater than <code>InputCount</code> -1, the output will either be the type default value (for value types) or ''null'' for reference types. | ||
+ | |||
+ | == Examples == <!--T:4--> | ||
+ | |||
+ | == Node Menu == <!--T:5--> | ||
+ | </translate> | ||
+ | |||
+ | [[Category:LogiX{{#translation:}}|Multiplex]] | ||
+ | {{:NodeMenu}} |
Latest revision as of 08:09, 19 February 2022
Multiplex | ||
---|---|---|
Inputs | ||
Float | [0] | |
Float | [1] | |
Int | Index | |
Outputs | ||
Float | * | |
Int | InputCount |
The Multiplex node outputs one of the multiple Operands
input values determined by the Index
input.
Usage
The index corresponding to each input is visible in square brackets in the respective input name.
The InputCount
output provides the current number of inputs.
This node initially had an unset dummy datatype when spawned from the node browser. It will overload to the correct datatype when any value or reference typed value is connected. If the Index
value is out of range, i.e. it is less than 0 or greater than InputCount
-1, the output will either be the type default value (for value types) or null for reference types.