Notifications
Clear all

[Closed] Deselect specific components?

Is there a simple way to deselect specific components (verts/edges/face) by index number? I assume there’s a built in function for this instead of subtracting them from a selection array and using it to reselect everything.

4 Replies
1 Reply
(@denist)
Joined: 1 year ago

Posts: 0
deleteitem <mesh_or_poly>.selectedverts index 

or

deselect <mesh_or_poly>.verts[index]

wait a sec… i will make the weirdest one …

setvertselection <mesh> (getvertselection  <mesh> - #{index}) keep:off
1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

but i do it always the way that probably you don’t want:

<node>.selectedverts = <node>.selectedverts as bitarray - #{index}

Thanks for the very thorough response! That’s exactly what I needed to know.