Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Dynamically adding / removing ofxGui controls?

$
0
0

@lethalrush wrote:

Currently, I’ve built a system where (1) I have a bunch of UI controls (such as shape size, shape orientation, shape colour, shape on-screen quantity, shape location xy, etc.), and (2) i have a slider that changes the shapes I’m generating from circles to squares to cubes to cylinders to any shape i want.

However, instead, I want to have the UI controls themselves also change according to the shape I’ve selected to draw. Ex: if i select circles, i want to be able to control their radii, and whether they are oval; if i select cubes i want to control the colour on each face of the cube.

To do this, I’d need to have UI controls dynamically appear and disappear (or load and unload) whenever i select a shape - where the controls are specifically meant to control the shape and each shape’s unique properties.

(How) is this possible?

(i’m trying to create basically a graphical “plug-in” system like in photoshop or ableton/VST).

(thank you! :slight_smile: )

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929