3
$\begingroup$

I'm modeling a tree trunk with the use of the skin modifier. Is it possible to automatically select the last vertex of every branch? Preferably with Python.

Top view of the tree trunk with several last vertices selected Top view of the tree trunk with several last vertices selected

$\endgroup$
6
$\begingroup$

Select verts with only one linked edge

import bpy
import bmesh

context = bpy.context

ob = context.object
me = ob.data
bm = bmesh.from_edit_mesh(me)
for v in bm.verts:
    v.select = len(v.link_edges) == 1

bmesh.update_edit_mesh(me)
$\endgroup$

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.