Python script with arguments for command line Blender
问题 I'm new to blender and python. I have a blender model (.blend) that I want to batch-render as several images providing some properties for each image. I wrote a python script with those parameters, something like: import bpy pi = 3.14159265 fov = 50 scene = bpy.data.scenes["Scene"] # Set render resolution scene.render.resolution_x = 480 scene.render.resolution_y = 359 # Set camera fov in degrees scene.camera.data.angle = fov*(pi/180.0) # Set camera rotation in euler angles scene.camera