import bpy
import bmesh
def mission1(obj):
bm = bmesh.from_edit_mesh(obj.data)
lay = bm.edges.layers.bevel_weight[0]
for e in bm.edges:
print(e[lay])
e[lay] = 1-e[lay]
bmesh.update_edit_mesh(obj.data)
mission1(bpy.context.active_object)
|
Blender python API quick-start
Syntax highlighting by Pygments.