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:
     v.co *= scale

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

1 Like

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

/Nathan

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