pie_select_menu.py 文件源码

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

项目:bpy_lambda 作者: bcongdon 项目源码 文件源码
def draw(self, context):
        layout = self.layout
        pie = layout.menu_pie()
        # 4 - LEFT
        pie.operator("view3d.select_border", text="Border Select",
                    icon='BORDER_RECT')
        # 6 - RIGHT
        pie.menu("object.selectloopselection", text="Select Loop Menu", icon='LOOPSEL')
        # 2 - BOTTOM
        pie.operator("mesh.select_all", text="Select None",
                    icon='RESTRICT_SELECT_ON').action = 'DESELECT'
        # 8 - TOP
        pie.operator("mesh.select_all", text="Select All",
                    icon='RESTRICT_SELECT_OFF').action = 'SELECT'
        # 7 - TOP - LEFT
        pie.operator("mesh.select_all", text="Select All Toggle",
                    icon='ARROW_LEFTRIGHT').action = 'TOGGLE'
        # 9 - TOP - RIGHT
        pie.operator("mesh.select_all", text="Invert Selection",
                    icon='FULLSCREEN_EXIT').action = 'INVERT'
        # 1 - BOTTOM - LEFT
        pie.operator("view3d.select_circle", text="Circle Select",
                    icon='BORDER_LASSO')
        # 3 - BOTTOM - RIGHT
        pie.menu("object.selectallbyselection", text="Multi Select Menu", icon='SNAP_EDGE')


# Select All By Selection
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号