我有一个问题,我已经尝试了几种方法来解决,但到目前为止都没有成功。在
这个简单的代码是使用blender 2.49从场景中删除对象:
import Blender
import bpy
def removeobj (scn):
for ob in scn.objects:
if ob.type == 'MESH':
scn.objects.unlink (ob)
scn = bpy.context.scene
removeobj(scn)
但是当我按下p时什么也没有发生,当Alt+p时,属性错误显示:'module' object has no attribute context
我怎么解决这个问题?在
目前没有回答
相关问题 更多 >
编程相关推荐