3
$\begingroup$

Let's say I create object primitive plane and I create a vertex group. I add one vertex of the plane into the group but leave the other 3.

Is it then possible to transform that one vertex in the group using geometry nodes?

$\endgroup$
8
$\begingroup$

It's possible and really really easy to do. You just need two nodes to make it happen

Demonstration:

enter image description here

Node Setup: enter image description here Note that test is the name of the vertex group. Also the vertex group should have weight of 1

(I am using blender 2.93)

To change material_index follow this node group: enter image description here

Demonstration: enter image description here

P.s. For it to work, U have to select the target faces(editmode)-> right click-> shade smooth them

$\endgroup$
6
  • $\begingroup$ As a follow up question, would it be possible to change the material index instead of the position? $\endgroup$ – aphatetic_artist Apr 19 at 12:03
  • $\begingroup$ !My attempt uses a vertex group (r) and checks if it's weight is 0 and puts the result into a custom c attribute. The c attribute is created as boolean within vertex domain, so I convert it to d attribute that's in the face domain and is an integer. Then I'm trying to add/subtract the d attribute to/from the material index, but the material index doesn't change. $\endgroup$ – aphatetic_artist Apr 19 at 16:14
  • $\begingroup$ Hey, turns out I was being an idiot. You can change material_index. I have edited my answer please read it.......The key is to instead of putting material_index as result of attribute math, u have to keep a different attribute and later convert that attribute as an integer to material_index $\endgroup$ – Maulik Sharma Apr 20 at 11:15
  • 1
    $\begingroup$ @MaulikSharma so you finally understood what i explained to you. Just need some minutes.... $\endgroup$ – Chris Apr 20 at 11:47
  • $\begingroup$ Yes, I did. Thanks. I replied to u over youtube a long time ago $\endgroup$ – Maulik Sharma Apr 20 at 11:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.