Guest User

Blender 2.78 render in 8 direction

a guest
Mar 31st, 2018
113
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import bpy
  2. import os
  3.  
  4. pi = 3.14159
  5. deg45 = 45 * pi / 180
  6.  
  7. scene = bpy.context.scene
  8. cam = bpy.data.objects['Camera']
  9. origin = bpy.data.objects['RenderPlatform']
  10.  
  11. outputPath = os.path.dirname(bpy.data.filepath) + '/out/'
  12.  
  13. for i in range(1,9):
  14.     origin.rotation_euler[2] -= deg45
  15.     scene.render.filepath = outputPath + 'shot_%d' % i
  16.     bpy.ops.render.render(animation = True, write_still=True)
RAW Paste Data