mover.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:mesh_doshape_tools 作者: YHOYO 项目源码 文件源码
def main(self, context, chboxaxisx, chboxaxisy,chboxaxisz, distance):

        distancia = distance


        obj = bpy.context.object
        me = obj.data
        bm = bmesh.from_edit_mesh(me)

        if chboxaxisx:
            x = distancia
        else:
            x = 0.0

        if chboxaxisy:
            y = distancia
        else:
            y = 0.0

        if chboxaxisz:
            z = distancia
        else:
            z = 0.0    

        vertices = [v for v in bm.verts if (v.select and not v.hide)]


        bmesh.ops.translate(
                            bm,
                            verts=vertices,
                            vec=(x, y, z))

            ### separar caras###


        bmesh.update_edit_mesh(me, True)

        #"Render"
        bpy.ops.render.render()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号