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.
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.
that makes sense! if I find the time, I’ll update it. it needs to updated to a newer Blender version anyway…