rendering and saving images through Blender python

后端 未结 3 971
囚心锁ツ
囚心锁ツ 2021-01-30 13:38

I am trying to render and save multiple images through python script in blender. I know how to render and save the image through the Blender GUI but I want to do it all through

3条回答
  •  天涯浪人
    2021-01-30 14:21

    something like this:

    import bpy
    
    bpy.context.scene.render.filepath = 'pathToOutputImage'
    bpy.context.scene.render.resolution_x = w #perhaps set resolution in code
    bpy.context.scene.render.resolution_y = h
    bpy.ops.render.render()
    

提交回复
热议问题