我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用bpy.types.NodeTree()。
def register(): bpy.types.NodeTree.textures = CollectionProperty(type=UMOGUIListProperty) bpy.types.NodeTree.textures_index = IntProperty() bpy.types.NodeTree.objects = CollectionProperty(type=UMOGUIListProperty) bpy.types.NodeTree.objects_index = IntProperty()
def unregister(): del bpy.types.NodeTree.textures del bpy.types.NodeTree.textures_index del bpy.types.NodeTree.objects del bpy.types.NodeTree.objects_index