Difference between revisions of "0 1 (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "the node "0 1" will give a 1 or 0 on the output based on a Bool input. so FALSE is 0 and TRUE is 1")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
the node "0 1" will give a 1 or 0 on the output based on a [[Bool]] input.
+
<languages></languages>
 +
<translate>
 +
<!--T:1-->
 +
{{Infobox Logix Node
 +
|Name=0 1
 +
|Image =[[File: ZeroOneNode.png | noframe | 128px | '0 1' LogiX node ]]
 +
|Input0Type=Bool|Input0Name=Boolean
 +
|Output0Type=Float|Output0Name=*
 +
}}
  
so FALSE is 0
+
<!--T:2-->
and TRUE is 1
+
The '''0 1''' node can be used to convert a Boolean value to a float.
 +
 
 +
== Usage == <!--T:3-->
 +
For the Boolean input True the output is 1, for False the output is 0.
 +
 
 +
== Examples == <!--T:4-->
 +
This is commonly used to convert a bool to a float for driving blendshapes.
 +
 
 +
== Node Menu == <!--T:5-->
 +
</translate>
 +
[[Category:LogiX{{#translation:}}|0 1]]
 +
[[Category:LogiX:Operators{{#translation:}}|0 1]]
 +
{{:NodeMenu-Operators}}

Latest revision as of 03:11, 20 February 2022

Other languages:
English • ‎日本語
0 1
'0 1' LogiX node
Inputs
  Bool Boolean
Outputs
  Float *

The 0 1 node can be used to convert a Boolean value to a float.

Usage

For the Boolean input True the output is 1, for False the output is 0.

Examples

This is commonly used to convert a bool to a float for driving blendshapes.

Node Menu

Operators
Back Bool Vectors Nullable Parsing - ! !=
% & ?: ?? ^ | |V|
|V|² + +/- +1 < << ==
> >> × ×dT ÷ ÷dT
° · 0 1 -1 1/x
1-x A^-1 Cross Determinant Distance Filter Invalid Get Type
IsInfinity IsNaN IsNull Mask Matrix Element -n NAND
NOR Normalized NotNull Pack Columns Pack rgba Pack Rows Pack xy
Pack xyz Pack xyzw Project Reflect ROL ROR To String
Transpose Unpack Columns Unpack Rows Unpack xy Unpack xyz Unpack xyzw
XNOR