Can anyone point me to a tutorial on how to edit the look of a [bng] to look more like a button with rounded edges in vanilla if it is possible.
-
How do I make a button with rounded edges in vanilla using [bng]
Reggie
-
- Make your own external.
- Blanking the square outline with 4 white canvasses will work.
Giving the bang send and receive addresses will remove the inlet and outlet too...... button-O.pd - Data structures. More complex but probably the best method.
David.
-
@whale-av Ok I see what you did here. I will be looking into data structures. Thx
Reggie
-
@RetroMaximus Data structures are a way to do it, but they are also somewhat limited.
Here is an example for a simple bang that achieves some roundness at the corners just by having a thick border: structbang.pd
To see what is currently possible in regards to roundness, you can have a look at the work of @Balwyn:
-
Simplified: structbang.pd
-
Ok I'm going to play around with that. If you wouldn't mind giving me your thoughts on what I came up with.
So as of now I need to do 2 more things. Resizes all of the bng's after [loadbang] to the height of the button because bng's can only be square. This is to ensure there is a bang behind the canvas if the button size changes. I have multiple bng's connected to the first bang in the abstract and you can see what it is sent to [bangbtn-$0]. And this is successful whenever I click on the canvas even tho it is above the bng object. I do see a "bangbtn-2104: bang" for example in the pd console.I need to figure out how to set the canvas size of [OBBang 1 100 17 ] to hide the remaining bng's that should not be shown. I found this doc that showed a small piano and this is the way it described on how to make a custom button.:/ and now I cant seam to find the link to that site but anyways moving along.
I should note I have the inner canvas adjusting successfully to the correct size I'm confused about struct's
This second image displays how it currently looks when its load in a parent abstract. In this case the Sample Editor.
I have been reading that I have to use [struct] to adjust the canvas size somehow but im not to versed on struct aside from that I haven't found anything on creating bng's and any other objects after loadbang as of yet to get rid of all those bng objects in the abstract before it is loaded.
That way I can create something to populate a string of bng objects after [loadbang] to make a cleaner abstract.Any sort of direction is appreciated.
OBBang.pdReggie
-
I have been using this site to reference and slowly build this abstract. Visuals 5.2.1 Theory
Reggie
-
This post is deleted!
Reggie
-
@RetroMaximus Another attempt with data structures: structbang.pd
Here you can see on the lower right side how the GOP of an abstraction can be modified. There is some strange behavior going on in my patch, because i wanted the size of my polygon to be 1 x 1 pixel and scale the window instead, but you can ignore that for now. Just note that canvas has more options to modify text properties, especially text size.
Anyhow, another hint may be that you can also use a slider instead of all the bangs, adjust the size and just take the bang from it.