how can i scale a MESH with python?

can anyone tell me how to scale a mesh with python?

or does anyone know a script in which meshes are scaled, so i can copy it?

thanks in advance:D

To scale the actual vertexes, you just need to do something like:

...Get Your Mesh Object...
scale = 0.5
for v in me.verts: *= scale

If you just want to scale the object, just use the object.setSize(x, y, z) method.

1 Like

See the module in your .scripts\bpymodules directory - check the directory in its whole for cool tools and snippets already written for you!


thank you very much! that really helped me.:smiley: