I come here with a question on a blender feature that i didn’t manage to use:
The user attributes.
In the mesh tab, there’s an ATTRIBUTES panel where you can create a named list about parts ( verts, edges, faces, etc… ) of the mesh.
I’m using an absolutely wonderfull geonode from @sozap ( ) you can get here: B3.2: Broken arches modeling
This lil jewel is able to create an arch over every segment ( edge ) of a mesh.
What i want is to ponderate every edge with a value that will be used in the geonodes.
I created a attribute list ( in the middle of the pic ) in wich i should be able to setup a float value on each edge.
My problem is: where should i set those per edge values ?
Could anyone help me on this please ? I’m pretty sure it is damn straightforward but i cannot find any clue on it
I have some bad news for you… Those Attributes are only for export conversion. I think there are plans to make them exposed in Edit Mode in the future, but for now they are only useful when converting an applied Geometry Node modifier for export.
The only EdgeAttribute that I know of which is exposed to GN in 3.2 (and latest nightly build even) is Edge Crease:
… here I’m using edge crease to write to a custom attribute called “Test”. Its currently the only way I know of to get edge data into a GN network (and I hope someone can correct me, cos it’s been bugging me too).
in edit mode do F3 and look for Set Attribute !
TBH I didn’t test it so it might not work but in theory that should allows you to do what you’re looking for.
Btw you are both right. Hopefully i found a B3.5 version able to run on win7 and gave the set attribute ( that don’t exist in B3.2 ) a try.
It works like a charm but i have so many things to test and validate before i move to B3.5 that i’ll delay it a bit.
Isn’t there a way to do what you say @sozap with a small python func ? I believe it is doable and since i already have a big piece of code for my carcassonne project helpers, i could easily add a couple of props for setting a per edge attribute value^^
Do you know the way of doing this in 3.2 ?
I’ll search for this on my side and be back soon
As if i find a solution it could be usefull for all 3.2 users not ready to migrate to 3.5…
Well, I’m pretty sure it’s doable but I didn’t look into that myself, so unless I start to write the code I can’t tell you much more …
Since UV are attributes now (already in 3.2 ?) , maybe looking into how addons write them could be a first step ?
Personally I’ll invest that time into upgrading, which you’ll probably want to do at some point anyway.
The only missing thing is a lil script to set the CV value for edges. The strange thing is that in RNA viewer, the CV for each edge is visible ONLY in object mode. As soon as i go in edit mode, the list disappears !
Probably one blender behaviour i did not understand yet
At last but not least @sozap, would you have an idea for parameterizing ( also through attributes ) the sweep angle of the arch generator for each edge ?
Yeah it’s a bit confusing ! But basically the group is acting like a add mesh node.
If you add a icosphere node, we agree that it’s radius can’t be 2 and 1 at the same time, it’s a fixed value. Or something like the resolution need to be a fixed value too.
That’s why it doesn’t work : we create one arch and that arch is then instanced multiple times.
And at this stage it’s possible to give each instance of the arch a different scale.
But the original one can’t be of size 1 and 2 at the same time, obviously
For the same reasons, changing the angle won’t work with this setup.
You need to add several node for each angle you want, or create the arches differently in a way that allows different angles.
Probably possible but likely to be much more difficult.
I understand how much i’m dumb when it’s about geonodes
I gonna try to explain what i think i’ve understood:
In your nodes, to separate every edge and convert edges to points at their center. This point is the origin of an instance ( here an arc ). If instances are created only once and not on a ‘per-point’ basis, i can understand that arcs cannot be different for each point.
But…
if i create 2 arcs; 1 with sweep angle of 90° and the second one with sweep angle of 45°, both are created once and then i should be able to switch between them, according to a boolean defined by ( for example ) edge crease ( crease <= 0,5 gives true else false )
This simply don’t work I’m obviously missing something but i don’t see what. This selection switch still don’t work when you replace both groups by a cube and a sphere primitive…