1
$\begingroup$

enter image description here

Hi, how can i disable the delete menu that appear when delete a element?, is really annoying because if i am working in face mode then i will be like delete faces and this menu is complety unnecessary, thanks.

$\endgroup$
  • 1
    $\begingroup$ "this menu is completely unnecessary" this is false. Different deletion options in different selection modes yield different results $\endgroup$ – Duarte Farrajota Ramos Nov 16 '18 at 17:12
1
$\begingroup$

right click on the Faces and assign a shortcut.

all the options in the delete menu are not at all unnecessary, as you may/can work with more than one type of selection concatenated together, thus having a special menu for every single combination is just not worth it.

$\endgroup$
  • 1
    $\begingroup$ Peter is right, the delete behaviour could be handled based on selection context. This is how it works in Modo for example, very comfortable when used to. The menu options are legit, but the need to select one in 90% cases is unnecessary, when it could be recognized for you. $\endgroup$ – Jaroslav Jerryno Novotny Nov 16 '18 at 17:00
  • 1
    $\begingroup$ There may be more common options for each selection mode, but each one still yields different results, so they can't be omitted, otherwise they will force you to switch modes to do certain operations which is also undesirable $\endgroup$ – Duarte Farrajota Ramos Nov 16 '18 at 17:14
  • 2
    $\begingroup$ I work for years in 3dsmax without this type of menu and never has a problem, this menu stop the normal modeling process and make more slow the modeling task. I think that is very easy add a option in the user settings panel to turn off this delete menu. $\endgroup$ – Peter Oluek Nov 16 '18 at 17:23
  • $\begingroup$ @DuarteFarrajotaRamos there was no argument to omit the options, but to make the Del/X button behave based on context. It's easy to invoke all the options when need to and it's faster when it behaves how you expect without extra menu to confirm. $\endgroup$ – Jaroslav Jerryno Novotny Nov 16 '18 at 17:26
0
$\begingroup$

as I understand the point of where the need is coming I would like to provide an other solution. but just to be clear I do think that the default behavior of Blender is more consistent.

bl_info = {
    "name": "Regular delete ",
    "author": "Virgil Sisoe",
    "version": (1, 0),
    "blender": (2, 80, 0),
    "location": "",
    "description": "delete in context",
    "warning": "",
    "wiki_url": "",
    "category": "",
}
import bpy


def main(context):
    for ob in context.scene.objects:
        print(ob)


class SimpleOperator(bpy.types.Operator):
    """Tooltip"""
    bl_idname = "object.delete_regular"
    bl_label = "Simple Object Operator"

    @classmethod
    def poll(cls, context):
        return context.active_object is not None

    def execute(self, context):
        """Check which mode the active object is and then delete.

        selection_mode is a list of the type of selection you are currently in 
        # 0 = VERT
        # 1 = EDGE
        # 3 = FACE
        """
        main(context)
        if bpy.context.object.mode == 'OBJECT':
            bpy.ops.object.delete(use_global=False)
        elif bpy.context.object.mode == 'EDIT': 
            selection_mode = [i for i in tuple(bpy.context.scene.tool_settings.mesh_select_mode)]
            if selection_mode[0] == True: 
                bpy.ops.mesh.delete(type='VERT')
            elif selection_mode[1] == True:
                bpy.ops.mesh.delete(type='EDGE')
            elif selection_mode[2] == True:
                bpy.ops.mesh.delete(type='FACE')
        return {'FINISHED'}


def register():
    bpy.utils.register_class(SimpleOperator)


def unregister():
    bpy.utils.unregister_class(SimpleOperator)


if __name__ == "__main__":
    register()

    # test call
    bpy.ops.object.delete_regular()

by no mean I am a Python expert so if some one would like to add something please be my guest. The scripts DELETES stuff not DISSOLVE as I understood that was the need.

To use this script as Shortcut you need to install it like a regular Addon

enter image description here

once you activated and Save user settings go into the Input tab to add two new entry, one in the 3d View Object Mode and one in the 3D View Mesh (the script does delete in object mode without confirmation, like 3Ds Max, but if that is not what you want just don't add the shortcut there)

enter image description here

once inside just click the + Add new tab and write the name of the operator in this case object.delete_regular and create your own custom shortcut.

enter image description here

https://imgur.com/a/oZFI9Xp

$\endgroup$

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.