[Python] quickly adding large numbers of mesh primitives in blender

Discussão em 'Python' iniciado por Stack, Maio 3, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to add tens of thousands of mesh primitives to a scene in blender using its Python interface. I've been using something to the effect of:

    for i in range(10000):
    bpy.ops.mesh.primitive_cube_add(radius=1, location=(i, i, i))


    This approach takes many minutes, though. Is there a more efficient way of doing this?

    Continue reading...

Compartilhe esta Página