1
$\begingroup$

I'm extremely new to Blender. I've watched a few guides on modelling, rigging and animating and have made myself a character with a bunch of animations. But I'm not looking to export the model, I'm instead looking to save the animation as a batch of sprites from an isometric view.

I found this script just googling "blender render isometric". However when I run the script blender freezes for a few seconds and there's no file to be found. I don't quite understand how scripts are executed.

import bpy
from math import radians

angle = -45
axis = 2 # z-axis
platform = bpy.data.objects["RenderPlatform"]
original_path = bpy.data.scenes[0].render.filepath

for i in range(0,8):

    # rotate the render platform and all children
    temp_rot = platform.rotation_euler
    temp_rot[axis] = temp_rot[axis] - radians(angle)
    platform.rotation_euler = temp_rot;

    # set the filename direction prefix
    bpy.data.scenes[0].render.filepath = original_path + str(i)

    # render animation for this direction
    bpy.ops.render.render(animation=True)

bpy.data.scenes[0].render.filepath = original_path

enter image description here

enter image description here

$\endgroup$
  • 1
    $\begingroup$ Good scripts don't do things by clicking buttons in blender, they use internal functions. While they execute the script, blender freezes. If your script doesn't give you the desired file means, that the script is wrong (or your just can't find it). $\endgroup$ – WhatAMesh Sep 12 '18 at 20:09
1
$\begingroup$

Blender freezes because it's running the script and rendering out the frames. If you look at the System Console (Window -> Toggle System Console) while it runs, you will see the frame numbers and the filepath listed as each frame is rendered.

The amount of frames rendered depends on your Frame Range. By default this is set to 250 frames. Since the script renders out frames 8 times, this would be a total of 2000 frames. Blender will be frozen while this runs, which could take a few minutes depending on your scene and system specs.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.