How can I make it so that when switching to object mode it automatically exits wireframe mode?
Set your viewport to Solid Shading ( not wireframe)
Use Tab to switch to edit and object …when you switch from edit it will automatically show solid view…
Perhaps it is time for you to read the Documentation…
DOCS >>>>
You sure? If you have wireframe view in edit and you switch to object mode, you’ll still be in wireframe view. OP, you’ll need a script that switches out of wireframe view automatically. Try this- no promises, I haven’t tried it, but something like this should work:
import bpy
def toggle_wireframe():
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
for space in area.spaces:
if space.type == 'VIEW_3D':
space.show_wireframes = not space.show_wireframes
class ToggleWireframeOperator(bpy.types.Operator):
bl_idname = "view3d.toggle_wireframe"
bl_label = "Toggle Wireframe"
def execute(self, context):
toggle_wireframe()
return {'FINISHED'}
def wireframe_handler(event):
if event.type == 'TAB' and bpy.context.mode == 'EDIT_MESH':
toggle_wireframe()
def register():
bpy.utils.register_class(ToggleWireframeOperator)
bpy.app.handlers.keyboard_press.append(wireframe_handler)
def unregister():
bpy.utils.unregister_class(ToggleWireframeOperator)
bpy.app.handlers.keyboard_press.remove(wireframe_handler)
if __name__ == "__main__":
register()
2 Likes
Then when you tab in and out of edit mode ( edit mode is Wire Frame just not with X-ray) so when you tab back to object mode it will always be ( Whatever you set in the viewport shading) and in this case, solid view …