Python code to add objects to the 3D Cursor
I added a cube and looked at the Python Console
bpy.ops.mesh.primitive_cube_add(enter_ editmode=False, align='WORLD', location=(0, 0, 0)))
The code looked like this
When you run this code, it adds the cube to the first location you put it in, not the location of the 3D Cursor (location=(0, 0, 0))
I want to use this add-on, so the Python code has to be one line
How do I add an Object to the 3D Cursor's position?
Translated with www.DeepL.com/Translator (free version)