# How can I know scripts of what I am editing on mesh? [duplicate]

I do some edit on a mesh, but I want to know the script of what I am editing on the mesh for scripting an operator.

• Hi and Welcome! Consider that the bare minimum here is to show some effort towards your goal. I'd recommend always add the current state of your code to your question, makes it way easier to give an answer. Please read: blender.stackexchange.com/help/how-to-ask, Cheers Apr 4 at 12:45
• What? I did not know the code, how can I state? I come here to ask people how can I do. Please show your answer if you know. Thanks Apr 4 at 13:07
• I will try, but I really don't know the code. Apr 4 at 13:26
• Not sure what you mean by that. Please edit your question, describe in detail what you're looking for and add some research efforts at least. Apr 4 at 13:36

I deleted the cube, and add back a new cube to the scene. It showed the script in the Info Area bpy.ops.object.delete(use_global=False, confirm=False) is the script that I deleted the cube but you just need to type bpy.ops.object.delete() if you keep the default size and location.
The Info Area show bpy.ops.mesh.primitive_cube_add(size=2, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1)) that I add a cube, but you just need to type bpy.ops.mesh.primitive_cube_add() if you keep the default size and location.