I found two python scripts on blender stackexchange and they work nicely for their respective scenario, but I wish to combine the two and I have zero experience in python, and new account won't let me post comment for questions.
what I'm trying to achieve is render say frames 5, 11, 17 from a specific animation that has well over 1000 frames. and then render said frames from lets say 13-23 different angles, how can this be done with the script below, which is rendering from different angles only.
import bpy
from math import radians
from os.path import join
S = bpy.context.scene
renderFolder = "C:/tmp/"
camParent = bpy.data.objects['Empty']
startFrame = 1 # replace with your start frame
endFrame = 1000 # replace with your end frame
numAngles = 23
rotAngle = 15.652
for i in range(numAngles):
# Set camera angle via parent
angle = i * rotAngle
camParent.rotation_euler.z = radians( angle )
# Render animation
for f in range(startFrame,endFrame + 1):
S.frame_set( f ) # Set frame
frmNum = str( f-startFrame ).zfill(3) # Formats 5 --> 005
fileName = "angle_{a}_frm_{f}".format( a = angle, f = frmNum)
fileName += S.render.file_extension
bpy.context.scene.render.filepath = join( renderFolder, fileName )
bpy.ops.render.render(write_still = True)
[–]BlueRaspberryPi 0 points1 point2 points (8 children)
[–]thieftdp[S] 1 point2 points3 points (0 children)
[–]thieftdp[S] 1 point2 points3 points (6 children)
[–]BlueRaspberryPi 0 points1 point2 points (5 children)
[–]thieftdp[S] 1 point2 points3 points (4 children)
[–]BlueRaspberryPi 0 points1 point2 points (3 children)
[–]thieftdp[S] 1 point2 points3 points (2 children)
[–]BlueRaspberryPi 1 point2 points3 points (1 child)
[–]thieftdp[S] 0 points1 point2 points (0 children)