2
$\begingroup$

I've been looking for a way to use edge groups in Geometry Nodes. Currently in Blender 3.6 the crease and sharp edge properties are accessible. Being able to access these two has been really useful, but it would be even better if bevel edge, freestyle edge and seams would also be available as edge groups in GN.

I found a bit of code in this post and I've tried to apply it, but it doesn't seem to do anything at all. This post is only 7 months old so I'm assuming that the answer is not outdated and there is something I'm doing wrong on my end. I'm a scripting nooblet so that seems pretty likely.

Any help would be appreciated!

$\endgroup$
2
  • 1
    $\begingroup$ You could bevel the edges first, then use geonodes to compare before and after bevel to detect which edges had bevel weight assigned. It's harder to figure out the amount of the weight… $\endgroup$ Commented Aug 6, 2023 at 12:05
  • $\begingroup$ @MarkusvonBroady If I understand it right that would work, but being able to access the edge data directly would be more convenient. $\endgroup$ Commented Aug 6, 2023 at 12:59

1 Answer 1

4
$\begingroup$

but it works...

  1. if you are a python beginner - you should write that in your question. We cannot know what your experience is.
  2. if you are a geometry nodes beginner - you should write that in your question. We cannot know...

Assuming you are both of it because a) your python code cannot work that way and b) your geometry nodes modifier wasn't adapted...

  1. you have to call a function so that it works. you just defined two functions, but they won't call themselves. You have to do that. so add

    apply_freestyle_attribute() 
    

at the end of the text file, then run it.

Then you can go to your geometry nodes modifier and change it:

enter image description here

result:

enter image description here

$\endgroup$
1
  • $\begingroup$ Ah I see, thank you! I'm inexperienced with Python. I've spent some time with GN though. The file I provided is my test file, I should have specified that in my question. $\endgroup$ Commented Aug 6, 2023 at 12:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .