def generate_images(stl_directory_name, blender_args=None):
output_directory = tempfile.mkdtemp()
if not blender_args:
blender_args = ['blender',
'-b', '-P', 'image_match_generator.py', '--',
'-d', abspath(expanduser(stl_directory_name)),
'-o', output_directory,
'--no-rotations',
'--only-front-view']
spawnvp(P_WAIT, 'blender', blender_args)
return output_directory
评论列表
文章目录