On Steelwing's Blender Rotation Track

Freeform discussion about anything related to modding Transcendence.
Post Reply
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Hi, I was able to get Steelwing's Blender Rotation Track to work.
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:

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

#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
Hopefully you guys try it out, and let me know if it works! :D
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Post Reply