# Changing default mesh size

Sorry for asking, but I couldn't find my problem elsewhere. I'd like to have the default dimension of newly created objects 20x20 instead of 2x2 units. The reason is, every time I create a new object, I have manually scale them up to my mostly needed size, which is 20mm. Regardless of whether unit scale I select (mm or cm), the default cube is either 2mm or 0.2 cm, but I'd like to have a 20mm default cube. Where can I change this?

• You can scale the cube to your desired size and save that as the Startup File going in File > Defaults > Save Startup File. If you want to change the size every time you create a new object in the scene, I don't know how, sorry. – Lucas Leme Aug 30 '19 at 18:35
• You can scale the cube to your desired size and save that as the Startup File going in File > Defaults > Save Startup File. If you want to change the size every time you create a new object in the scene, I don't know how, sorry. – Lucas Leme Aug 30 '19 at 18:35
• If it's just for cubes, you could add your own shortcut with custom defaults for mesh.primitive_cube_add as shown here: blender.stackexchange.com/questions/94285/… – Ray Mairlot Aug 30 '19 at 18:38
• @RayMairlot thank you for the hint but sadly I'd like it for all primitives. – java lang Aug 30 '19 at 18:55

This won't be an instantly workable answer, because this is an issue that I'm having trouble with, too.

But, it seems like you could maybe unregister the operators, then reregister them with your modifications. Checking out the Python API, I found: https://docs.blender.org/api/current/bpy.ops.mesh.html

eg:

unregister()

bpy.ops.mesh.primitive_cube_add(size=2.0, calc_uvs=True, enter_editmode=False, align='WORLD', location=(0.0, 0.0, 0.0), rotation=(0.0, 0.0, 0.0))

register()

bpy.ops.mesh.primitive_cube_add(size=20.0, calc_uvs=True, enter_editmode=False, align='WORLD', location=(0.0, 0.0, 0.0), rotation=(0.0, 0.0, 0.0))


or something like that in an __init__ file?

I hope you get an answer, as I'd like to do the same for meshes, but also clip distance for cameras!

• Thank you, good idea,I will test it... – java lang Aug 30 '19 at 19:29