When you're modeling with a low res polygon and smoothing it with a Subdivision surface modifier, is there a way to toggle on/off the modifier's visibility using hotkeys instead of having to click on the "eye" icon ?
3 Answers
Toggle Simplify on/off
One easy approach is creating a shortcut for Simplify, which also affects subdivision display settings in the 3D View. The following Add-on creates the shortcut to toggle Simplify on/off automatically. Once the Add-on is enabled, you can press ShiftQ:
Download the latest version
Extract the archive
Install
blender-toggle-simplify.pyvia File > User Preferences > Add-onsChange the key configuration according to your personal preference
Toggle Modifier Visibility on/off
Another approach would be to toggle the visibility of the objects subsurf modifier(s) on and off. Depending on the current state, the following Add-on allows to press ShiftQ to enable/disable the Display property of all modifiers based on a given type.
Download the latest version
Extract the archive
Install
blender-toggle-modifier-visibility.pyvia File > User Preferences > Add-onsSet the type of modifier you would like to turn on or off (Subdivision Subsurface is just the default setting)
Change the shortcut configuration according to your personal preference
- 15,860
- 10
- 83
- 143
-
using the wm.context_toggle method from the other answer would achieve the same by typing in scene.render.use_simplify in the Context Attribute Field – aliasguru Sep 25 '16 at 19:23
-
Thanks, I know but I personally don't like creating shortcuts this way for many reasons, so I wouldn't recommend it. However, feel free to edit my answer. I'd really appreciate it @aliasguru – p2or Sep 26 '16 at 11:12
-
@p20r This is just what I was looking for! But I have a question. Is there a way to incorporate this into a menu button. I've included an attempt at this. My attempt can be found as a comment on your git page where this script can be downloaded https://gist.github.com/p2or/e0568d20cca23c8f5673 Please see that comment for more information if you're interested. Thanks for sharing! Eventually I want to incorporate this into a pie menu. – Internet Warriors Jun 19 '18 at 04:31
-
@P20r I'd like to be able to use CTRL+SPACE in edit and object mode. How about a pie menu? :) Thank you! – Internet Warriors Jun 20 '18 at 17:49
-
Pie menu with both operators (Toggle Simplify and Toggle Subsurf Visibility) based on Templates > Python > Ui Pie Menu, see this new gist. Since
Ctrl+Spaceis already occupied by the official pie-menu I thinkCtrl+Shift+Spaceis more appropriate right? To add your operators to a panel or even a custom menu, see How to create a custom UI? @InternetWarriors – p2or Jun 21 '18 at 12:54 -
@p20r Many thanks for going out of your way to provide this information to me. I really appreciate it. You are very good at this. – Internet Warriors Jun 29 '18 at 20:43
-
You obviously have no obligation to do it, but a Blender 2.9 compatible version would be much appreciated. I am not sure if Blender has new features that obviate the need of these addons, but I do not believe so. – Subhamoy S. Nov 26 '20 at 00:17
When the object is selected, you can change the levels ("View") Property of the topmost Subsurf modifier, with Ctrl[number]
- Ctrl0 0 view levels, meaning no subdivision in the viewport
- Ctrl1 1 view level
- Ctrl2 2 view levels
- Ctrl3 ...
- 26,725
- 2
- 44
- 105
Consider the following example. If an object has no subsurf modifier present, you will get an error dialog, which is annoying, but as long as you are fine with clicking it away, this gets the job done.
____EDIT:____
If there are multiple subsurf modifiers, and all of them should be shown or hidden, a simple add-on could be written that has code like the following:
from bpy import context
for selected in contex.selected_objects:
for modifier in selected.modifiers:
if modifier.type == "SUBSURF":
context.object.modifiers[modifier.name].show_viewport = not context.object.modifiers[modifier.name].show_viewport
- 203
- 1
- 10
-
What if the modifiers name is
Subsurf.001or the object has multiple subsurf modifiers? – p2or Sep 26 '16 at 11:33 -
Updated answer. But if you manually turn some of them on and some of them off, and then use this, you will get some kind of wonky behaviour. I guess that is the reason there is no standard hotkey for this. – Subhamoy S. Sep 26 '16 at 13:13
-
Updated my answer to reflect this. If no subsurf modifier is present, a new one will be created. To avoid the wonky behaviour we can create a custom flag to save the state, just let me know... – p2or Sep 26 '16 at 16:07






Iwhile hovering Eye icon) in 2 frames, in 1-st visibility checked, in 2-nd frame - unchecked. Then you could use Left or Right Arrow to toggle its visibility. This won't work well if there's another complex animation in file though. – Mr Zak Feb 13 '16 at 15:16