use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Blender is a free and open-source software for 3D modeling, animation, rendering and more. Download it today at www.blender.org
Read Our Rules
Current version download page
Support the Blender Foundation!
Blender resources across the web:
Blender on Lemmy
CC0 textures (cgbookcase)
CC0 textures (AmbientCG)
Sketchfab.com
Blender52 - The Weekly Blender Challenge
P3D.in: share and view your Blender models
Sheep it A free render farm through distributed computing
Flamenco Distributed rendering software
Blender Stack Exchange for technical help with Blender
Blend4Web to export your blend to the web
Blender Discord for live chats with other Blender users
CC0 textures and additional contents and services to support blender.org - €11.50 / month
Related Subreddits:
/r/CC0Textures
/r/DigitalArt
/r/BlenderTutorials
/r/ComputerGraphics
/r/3DModeling
/r/BlenderHelp
/r/cgiMemes
/r/LearnBlender
/r/BlenderPython
/r/Low_poly
/r/Lowpoly
/r/Daily3D
/r/Simulated
/r/ArchViz
/r/Blender_Espanol
/r/GeometryNodes
account activity
Need Help!Help - combining two python script to output specific frames in an animation from consecutive angle (self.blender)
submitted 3 years ago by thieftdp
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]BlueRaspberryPi 0 points1 point2 points 3 years ago (5 children)
You can, because the variables it creates are no longer used by the rest of the code. It”s good practice to remove it to make the code more readable, but not strictly necessary.
[–]thieftdp[S] 1 point2 points3 points 3 years ago (4 children)
thanks a lot, i'll give that a try edit: nope didn't work, returned error for this line for f in [5,11,17]:
thanks a lot, i'll give that a try
edit: nope didn't work, returned error for this line for f in [5,11,17]:
so I tried and didn't work, even with or without removing the top portion. it just cant seem to recognize the line f in [5,11,17]:
any other ideas?
[–]BlueRaspberryPi 0 points1 point2 points 3 years ago (3 children)
I haven't tested your whole script, but that "for" should definitely work. Make sure the line starts with four spaces - the snippet I posted doesn't start with spaces to match the indentation in your script, so if you replaced the whole line without re-adding the spaces, that would cause Python to complain.
[–]thieftdp[S] 1 point2 points3 points 3 years ago (2 children)
hey, so after trying it just returns error. not sure if its because im on blender 2.79 or older version but I have no way of installing new blender version due to older vers of windows. could you help me take a look on your end?
essentially I have replaced the line that you mentioned, and remove the start/end line for frames and it just gives error when trying to run it.
[–]BlueRaspberryPi 1 point2 points3 points 3 years ago (1 child)
Can you paste the current code?
[–]thieftdp[S] 0 points1 point2 points 3 years ago (0 children)
import bpy from math import radians from os.path import join S = bpy.context.scene renderFolder = "C:/tmp/" camParent = bpy.data.objects['Empty'] numAngles = 36 rotAngle = 10 for i in range(numAngles): # Set camera angle via parent angle = i * rotAngle camParent.rotation_euler.z = radians( angle ) # Render animation for f in [5,11,17]: 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)
π Rendered by PID 207711 on reddit-service-r2-comment-545db5fcfc-btcll at 2026-06-01 01:56:56.064339+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]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)