Switch¶
Functionality¶
Switches between to sets of inputs. Also can work as filter.
Category¶
Logic -> Switch
Inputs¶
State - True or False (0 or 1)
A_0 - 10 - True, False or None
B_0 - 10 - True, False or None
Outputs¶
Out_0 - 10 - result of switching between two values
Parameters¶
Parameters |
Type |
Description |
---|---|---|
in/out number (N panel) |
0 - 10 |
Number of socket sets |
Usage¶
Generation of bool sequence easily:
Number-> Random Num Gen
Text-> Stethoscope
Working with different types of data:
Scene-> Objects In Lite
Text-> Stethoscope
It is possible to deal with empty objects:
Number-> Random Num Gen
Number-> Number Range
List-> Filter Empty Objects
List->List Main-> List Join
List->List Struct-> List Split
Text-> Stethoscope
Script-> Formula
Using as filter:
Number-> Number Range
MODULO X, EQUAL: Number-> Scalar Math
Text-> Stethoscope
It has supporting of numpy arrays. Output is related with input from socket A and socket B. Output will be numpy array if at least one input sockets (A or B) has numpy array and another socket does not have list with two or more values.
Number-> Random Num Gen
Number-> A Number
Text-> Stethoscope
Alternative of list mask out node:
Number-> Random Num Gen
List-> List Mask (Out)
Text-> Stethoscope
Working inside and outside of object level¶
Something unexpected can be with none iterable objects like matrix or Blender objects. On the picture below it can be expected that switch should add first matrix and second quaternion:
Number-> Random Num Gen
Generator-> Random Vector
Matrix-> Matrix In
Text-> Stethoscope
but for this states input should have values on first object level not on second data level:
Generator-> Random Vector
Number-> Random Num Gen
Matrix-> Matrix In
Text-> Stethoscope
List->List Struct-> List Sort