0
$\begingroup$

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?

$\endgroup$
  • $\begingroup$ 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. $\endgroup$ – Lucas Leme Aug 30 '19 at 18:35
  • $\begingroup$ 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. $\endgroup$ – Lucas Leme Aug 30 '19 at 18:35
  • $\begingroup$ 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/… $\endgroup$ – Ray Mairlot Aug 30 '19 at 18:38
  • $\begingroup$ @RayMairlot thank you for the hint but sadly I'd like it for all primitives. $\endgroup$ – java lang Aug 30 '19 at 18:55
0
$\begingroup$

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!

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.