def execute(self, context):
oa = bpy.context.active_object
obj = bpy.context.object
me = obj.data
bm = bmesh.from_edit_mesh(me)
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
override = bpy.context.copy()
viewport = area.regions[4]
v_m = area.spaces[0].region_3d.view_matrix #orientation matrix
vert = [v for v in bm.verts if (v.select == True and v.hide == False)]
if len(vert) ==1:
self.main1(context, self.chboxVert0, self.grados, self.chboxreloj)
elif len(vert) == 3:
self.main3(context, self.chboxVert0, self.chboxVert1, self.chboxVert2,self.grados, self.chboxreloj)
else:
msg = "select 1 OR 3 vertices"
self.report({"WARNING"}, msg)
return {'CANCELLED'}
return {'FINISHED'}
评论列表
文章目录