-
-
16
-
9bl_info = { "name": "cs name", #插件名字 "author": "cs author", "version": (9, 9, 9), "blender": (9, 99, 0), "location": "3DView > Tools", "description": "Cha Jian cs???", "warning": "xxx", "support": 'OFFICIAL', "category": "Mesh", } import bpy def register(): #勾选插件时候执行 print('525495787') if __name__ == "__main__": register()
-
0import bpy obj = bpy.context.active_object v=len(obj.data.vertices) print(v) for ob in bpy.context.scene.objects: if ob.type =='MESH' and len(ob.data.vertices) ==v: ob.select_set(1) #print(len(ob.data.vertices))
-
6bpy.ops.render.render("INVOKE_DEFAULT")
-
00为啥视频发不出来01111111111111104080import bpy verts = [(0,0,0),(0,1,0),(1,0,0),(1,1,0)] edges = [(0,1),(1,3),(3,2),(2,0)]#参数为顶点的索引 faces = [(0,1,3,2)]#参数为顶点的索引 mesh = bpy.data.meshes.new('Pyramid_Mesh') mesh.from_pydata(verts, edges,faces) mesh.update() pyramid = bpy.data.objects.new('Pyramid', mesh) scene = bpy.context.scene #scene.objects.link(pyramid) bpy.context.scene.collection.objects.link(pyramid)13from tkinter import* def fc(): s1 = e1.get() s2 = e2.get() #get 得到输入框的值 t1 = len(s1) #len 字符串长度 t2 = len(s2) if s1 =1@persistent def fc(self): pass bpy.app.handlers.render_complete.append(fc) 作为插件时候需要这个修饰器 否则不会保留122222222222222222 测试16命令行 blenderplayer.exe [-w 500 300] C:\Users\tiger\Desktop\cs.blend130raise Exception ('异常提示') #主动抛出异常3bpy.context.scene.file_format = 'H264' >> bpy.context.scene.render.image_settings.file_format='H264'1贴子正文0ฏ๎๎๎๎๎๎๎๎๎ฏ๎ฏด้้้้้็็็็็้้้้้็็็็็้้้้้็็็้็็็0发帖测试0哦哦哦哦哦哦哦0哦哦哦哦哦哦哦0测试测试测试测试测试测试测试测试测试发帖测试0hhhhhhhhhhhhhhhhhhhhhhhhhhhh1#(pic,525495787,399,399)11111啊是事实是事实是事实是事实V0啊发发0hjvgh4 35555555555555 40hffhfjfjkjklghjghfd0hfhhhhhhhhhhhhhh姐姐姐姐姐姐姐姐