2
$\begingroup$

Without using the Split Edge node (well also didn't work with Split Edge anyway), is it possible to assign a material to a specific edge? I tried a method similar to this approach, but it doesn't work for edges that have a profile. I tried capturing the Edge attribute and also tried capturing on the Spline domain. In this case, I want to assign a different material to Edge Index 7. Is there a way to do this?

enter image description here

I tried this, but the Id or Vertex values are not correct:

enter image description here

$\endgroup$

2 Answers 2

3
$\begingroup$

Capture selection on an edge before converting to a curve. This will select all vertices connected to that edge, and those will transfer to the curve as verts are converted to curve points. As you bevel the curve, the attribute will be copied from spawning curve points to vertices of the profile spawned on those points. Then as you read the selection in face domain, only those faces will be selected, which have all vertices selected (both curve points, and therefore profiles, were selected):

Imgur mirror (SE image hosting has problems)

Blender docs: Boolean Domain Interpolation

$\endgroup$
1
  • $\begingroup$ ahhh ok nice! thank you for sharing <3 $\endgroup$ Commented Mar 15 at 9:42
2
$\begingroup$

I use the sample nearest node since there is no transfer attribute node

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ This will be problematic if some edges are close to each-other compared to bevel width. $\endgroup$ Commented Mar 15 at 9:30

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.