def make(self):
"""make the tree"""
start_time = time()
if __logging__:
print('** Generating Tree **')
# create parent object
self.tree_obj = bpy.data.objects.new('Tree', None)
bpy.context.scene.objects.link(self.tree_obj)
bpy.context.scene.objects.active = self.tree_obj
# create branches
self.create_branches()
# create leaf mesh if needed
self.create_leaf_mesh()
g_time = time() - start_time
if __logging__:
print('Tree generated in %f seconds' % g_time)
评论列表
文章目录