» 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

~1d ago

joreg: Release Candidate 3 for #vvvv beta39 is out: beta39-release-candidate Please test and report your findings!

~1d ago

young47: Will visit Köln and Düsseldorf this week. I'm an artist from Moscow, would be happy to meet someone! If you will be there, reply :)

~1d ago

microdee: vpm got a clean-up update. Download here: https://github.com/vvvvpm/vpm/releases/tag/1.3

~3d ago

joreg: @udo2013 please note that bass is only available with x86 builds!

~3d ago

aeckheim: Can't find the visual c++ runtime 2008. setup.exe link leads to nowhere. try to setup newest beta version

~4d ago

joreg: More #vvvv workshop dates for the coming months are announced: upcoming-full-day-vvvv-gamma-workshops-in-berlin

~6d ago

mburk: @synth can confirm crashes with instance noodles. studio drivers fixed it.

~7d ago

synth: @nissidis: So i am not crazy! Thanks for confirmation :) These are the things i do have problems with as well.

~7d ago

nissidis: @synth I do with Instance Noodles and FieldTrip (RTX 2080) I rolled back to Studio Drivers (instead of GameReady ones)