Hotkey setup for SubD wires toggle

@gustojunk, if you still need these 2 years after your post: :wink:

It can work with any display mode on/off setting (setting up a macro/hotkey). Based on your list and the samples below, it should be relatively easy to edit these to toggle any setting. To get a better idea of how to change it may be helpful to export any Display Mode into a *.ini file and see the settings and which sections they belong to from there (it does not always follow the UI logic)

Here are the toggles for your initial list:

SURF EDGES:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Surfaces\ShowEdges", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Surfaces\ShowEdges")) ) SetRedrawOn

SURF ISO:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Surfaces\ShowIsocurves", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Surfaces\ShowIsocurves")) ) SetRedrawOn

SUBD WIRES:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\SubD\SmoothVisible", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\SubD\SmoothVisible")) ) SetRedrawOn

MESH WIRES:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Meshes\ShowMeshWires", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Meshes\ShowMeshWires")) ) SetRedrawOn

CURVES:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Curves\ShowCurves", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Curves\ShowCurves")) ) SetRedrawOn

POINTS:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Points\ShowPoints", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Points\ShowPoints")) ) SetRedrawOn

ANNOTATIONS:
SetRedrawOff -_RunScript (Call Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Annotations\ShowAnnotations", Not Rhino.ViewDisplayModeProperty(Rhino.ViewDisplayModeEx(), "Objects\Annotations\ShowAnnotations")) ) SetRedrawOn

7 Likes