jildertviet / ofxJVisuals

Personal project for generating realtime visuals.
Other
4 stars 0 forks source link

Modifier class: how to access after init? #14

Closed jildertviet closed 2 years ago

jildertviet commented 2 years ago

Like Blender: array function. (Make grid of squars from one square i.e.)

Event{ vector modifiers; } if(modifier){ // call draw() inside the modifier? }

jildertviet commented 2 years ago

In SC:

j = JRectangle();
x = JModifier("array", JEvent.defaultLayer, j, [2,2], [0.2, 0.2]);
// Should send [/make, "array", id, layer, parent, val, val, val, val, val, val]

OF is there: adds a Modifier to the specified parent

jildertviet commented 2 years ago

Should be accessible as any other JEvent. But uses different parameters... So perhaps use a global bus system? "/setVal", id, "bus", busIndex, value