clintbellanger

Untitled

Jul 1st, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import Blender
  2. from Blender import *
  3. from Blender.Scene import Render
  4.  
  5. pi = 3.14159
  6. deg45 = 45 * pi / 180
  7.  
  8. context = Scene.GetCurrent().getRenderingContext()
  9. basePath = context.renderPath
  10.  
  11. for i in range(1,9):
  12. # objects without parents should be parented to RenderPlatform
  13. platform = Object.Get('RenderPlatform')
  14. platform.RotZ = platform.RotZ - deg45
  15. platform.setLocation(platform.getLocation()) # refreshes the child locations
  16. context.renderPath = basePath + str(i)
  17. context.renderAnim()
  18. Blender.Redraw()
  19. context.renderPath = basePath
Advertisement
Add Comment
Please, Sign In to add comment