您当前的位置: 首页 > 

开发游戏的老王

暂无认证

  • 3浏览

    0关注

    803博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

实现物体模式下在游标处新建一个独立顶点的小功能

开发游戏的老王 发布时间:2019-10-28 21:02:52 ,浏览量:3

Blender 2.81

走一下流程,未完待续

在这里插入图片描述 在这里插入图片描述

bl_info = {
    "name" : "SingleVertex",
    "author" : "Syo",
    "description" : "Create n single vertex at the position of cursor",
    "blender" : (2, 80, 0),
    "version" : (0, 0, 1),
    "location" : "View3D",
    "warning" : "",
    "category" : "Object"
}

import bpy
from bpy.types import Operator


class SINGLEVERTEX_OT_Operator(Operator):
    """Create single vertex """
    bl_idname = "SINGLEVERTEX_OT_Operator"
    bl_label = "single vertex"
    bl_description = "Create a single vertex"

    def execute(self,context):
        return {'FINISHED'}


from bpy.types import Panel

class SINGLEVERTEX_PT_Panel(Panel):
    bl_idname = "SINGLEVERTEX_PT_Panel"
    bl_label = "SingleVertex Panel"
    bl_category = "SingleVertex"
    bl_space_type = "VIEW_3D"
    bl_region_type = "UI"

    def draw(self,context):
        layout = self.layout





classes = (SINGLEVERTEX_OT_Operator , SINGLEVERTEX_PT_Panel)

register , unregister = bpy.utils.register_classes_factory(classes)
关注
打赏
1656935939
查看更多评论
立即登录/注册

微信扫码登录

0.0407s