» Conditions
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Conditions

French

Patching pages

Switch

Basic usage

In the most simplest scenario you want to switch between two inputs according to the result of some boolean operation (0 and 1).

This is what the  Switch (Value Input) is for.

By default the Switch node has 2 inputs to switch between: in case of 0 Input 1 and in case of 1 Input 2.

More Inputs

The Switch node can accept any number of inputs to switch between by setting the Input Count via the Inspektor. The Switch input then takes an integer value ranging from 0 to Count-1 to switch between the inputs.

See also
  • If you want to apply a LERP (linear interpolation) between the inputs instead of switching between them have a look at  InputMorph (Value).
  • In order to switch Values according to a String, have a look at  Case (Value Input).
Spreads

Alternatively to switching between multiple individual values you can use the GetSlice (Spreads) as shown to switch between the slices of a spread.

Boolean operations

Boolean operations

There is no special Boolean datatype in vvvv. Boolean values are simply represented by 0 (false, off) and 1 (true, on). Use the following nodes for basic boolean operations:

Relational operators

>, <, =,... return 0 or 1.

State conditions

There are some special nodes that return a Boolean according to a change in state.

Examples:

See the helppatches of these nodes for details.

State Automatas

When patching anything that can be separated into a series of states and events that cause transition from one state to another you are likely looking for Automata (Animation). Also the Timerliner has an automata built in.

See also:

anonymous user login

Shoutbox

~13h ago

joreg: another step closer: we've announced the licensing model for upcomming vvvv gamma: vvvv-gamma-licensing #vvvv #vl #visualprogramming

~22h ago

synth: Heya! is there a node to trat geometry as double sided? Or i should fix it in 3d app?

~3d ago

joreg: if you haven't yet: we're still accepting entries to our 2019 survvvvey https://goo.gl/forms/g3t6gwSwUfZwMOyd2 #vvvv

~3d ago

joreg: @polyrhythm these look great. do you know you can share a screenshot by simply pressing ctrl+3 on a renderer?!

~3d ago

polyrhythm: @AKa-visuals yep your comment helped me prioritize them :)

~3d ago

AKa-visuals: @polyrhythm ohhhh you heard my wishes.. supercool

~3d ago

polyrhythm: IBL support WIP for raytracer: https://i.imgur.com/qnngDIU.jpg

~8d ago

domj: Little vvvv robotics and light control in the Tschechisches Zentrum Berlin in few hours, just patching en route https://bit.ly/2V0FAb3 ;)

~8d ago

AKa-visuals: @polyrhythm Stunning!.. cant wait for ibl integration. Keep on!

~8d ago

catweasel: @polyrhythm looks lovely!