OOP in VVVV

Hey everybody,
so I come from p5.js where oop is pretty intuitive to me. But in VVVV it is breaking my head. I understand the whole create and update way. But what if for example want to use variables twice in an operation like here in this code.
And what is the difference between ctrl k Create and Split and the ctrl shift k SetX and X.


You can only write to a property once per function, so you could split it into other functions, but what I think you have in your code should be okay.

The If region has inlets that allow you to control the flow of data into your property. (you could think about it a a flashier Switch Node.

So you have two routes to write the to the property, but they take turns

Those are just convenience shortcuts:

  • CTRL + K adds input pins on the Create operation (constructor) of your datatype for the properties you have selected. It also creates a Split operation that returns the values of those properties.
  • CTRL + SHIFT + K creates two operations per properties you have selected : one to set its data, and one to read it.

Ah, yet again a handy hotkey Ctrl+Shift+K I didn’t know about 🥲

Yeah that helps a lot! Made it a lot clearer. Thanks a lot!