Original post here:
http://forums.kronosaur.com/viewtopic.p ... ing#p41852
The problem was that output_format disappeared in a later version, so I had to replace that with something else.
The new track looks like this:
Hopefully you guys try it out, and let me know if it works!
Code: Select all
# Transcendence - Render facings for ship model # by steelwing, edited by RPC # Make sure you've got your ship set up facing the right way to start. # Your ship must be the only selected object. # Set this for the path and filename to use. Leave the %i intact, as it's used to number the files. output_filepath = '//facings2\\facing_%i.png' # specify render format (make sure the extension above matches) output_format = 'PNG' import bpy from math import radians # Set output format bpy.context.scene #loop for 40 facings for x in range(1,41,1): bpy.context.scene.render.filepath = format(output_filepath % x) # set filename to save to bpy.ops.render.render(write_still=True) # perform render bpy.ops.transform.rotate(value=(radians(9),)) # rotate to next angle