Toggling between shaded and wireframe

Hi forum, can an alias or macro ( or already is) be made to toggle between these display options on a single button ? Hopefully wouldn’t cancel out a command while inside a command. Thanks ,Mark

hi Mark,
how about putting this on your button: (all in one line)

-_RunScript (if UCase(Rhino.ViewDisplayModeEx())="WIREFRAME" then Call Rhino.ViewDisplayModeEx(,"SHADED") Else Call Rhino.ViewDisplayModeEx(,"WIREFRAME") )

–jarek

2 Likes

Thank you Jarek. Guessing it will be a big help.

If it works, it will always go from Wireframe to Shaded, but if the display mode is different than shaded it will always go to Wireframe.

hth,

–jarek

1 Like

Hi Mark --There is already a button in the Standard toolbar.
Didn’t test it within a command; might work?
snap00 1-31-2020
Cheers @Jarek

1 Like

Years ago, before we could get much display performance from hardware, a common workflow was to work in a Wireframe display, but quickly Shade a viewport to inspect something. When a viewport is Shaded (not be be confused with the Shaded working display mode), you can zoom, rotate, and pan, but not draw.
As soon as you start a command to makes something, Shade flicks off.

This tool is the gray icon without the grid behind it:
image

It’s still a very efficient way to work.

1 Like

Good things to put in a middle mouse button toolbar.

1 Like

Thanks everyone, I will try all these suggestions.—-Mark

1 Like

Hi Mark,
I have an alias for each of the display modes I use. Everyone is different but I prefer the command line to custom buttons.

Screen Shot 2020-02-01 at 12.19.54 pm

cheers,
Sochin

1 Like

Or use a gaming mouse with plenty of extra buttons such like Logitech G502 and assign your favourite commands to whichever button you prefer. :slight_smile: