this post was submitted on 20 Oct 2024
14 points (100.0% liked)

Python

6468 readers
19 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] LovableSidekick@programming.dev 3 points 2 months ago (1 children)

Oh that makes sense - apparently bpy.ops has a current context that the transform acts on. Instead could you move the transform call outside of the loop after establishing the first block as the context? That's how I would instinctively do it, to avoid checking i in every iteration when I know it can only be true once. Totally minor critique lol.

[โ€“] monica_b1998@lemmy.world 2 points 2 months ago

that makes sense! if I find the time, I'll update it. it needs to updated to a newer Blender version anyway....