Sorry for continuous post from below post.
This question is related to it.
I want to obtain sequence of selected UV in Python.
But I did not come up with the implementation.
I show you my trial code.
This code DOES NOT work correctly. (only 2 loops can be obtained)
obj = context.active_object bm = bmesh.from_edit_mesh(obj.data) uv_layer = bm.loops.layers.uv.verify() sel_faces = [f for f in bm.faces if f.select] for f in sel_faces: for l in f.loops: if l[uv_layer].select: first_loop = l break loop_seq = [first_loop] loop = first_loop while True: if loop[uv_layer].select and loop.link_loop_next[uv_layer].select: loop_seq.append(loop.link_loop_next) loop = loop.link_loop_next else: break
Is there any mistake above codes?