Page 1 of 1

Button script to swap the view to Wireframe and back

Posted: Sun May 31, 2020 9:35 pm
by Stan
Image

A button-script to quickly change the view to Wireframe and back.

If you want a different mode than Wireframe, you can easily alter it inside the script file (lines 49-51 will guide you through).

Download here: http://mohoscripting.com/uploads/1/sz_s ... w_mode.zip

Re: Button script to swap the view to Wireframe and back

Posted: Mon Jun 01, 2020 9:50 am
by velu
Is it possible while working "Transform point tool" if we press "swap view mode" (with assigned shortcut key) and when release return to "Transform point tool" selection instead of "swap view mode" tool selection.

Many thanks.

Re: Button script to swap the view to Wireframe and back

Posted: Mon Jun 01, 2020 12:31 pm
by jahnocli
Thanks Stan!

Re: Button script to swap the view to Wireframe and back

Posted: Tue Jun 02, 2020 1:16 am
by Stan
velu wrote: Mon Jun 01, 2020 9:50 am Is it possible while working "Transform point tool" if we press "swap view mode" (with assigned shortcut key) and when release return to "Transform point tool" selection instead of "swap view mode" tool selection.

Many thanks.
That's exactly how it works now. Isn't it?

Re: Button script to swap the view to Wireframe and back

Posted: Tue Jun 02, 2020 5:23 am
by velu
Thank you very much San!

It is working what I expected.

Re: Button script to swap the view to Wireframe and back

Posted: Thu Jun 04, 2020 2:29 am
by toonscale
Thanks for the script. really handy but would have been nice if we could define our wireframe view cos i personally would like to have *STROKES showing.

Re: Button script to swap the view to Wireframe and back

Posted: Thu Jun 04, 2020 3:27 am
by Stan
toonscale, you can easily customize the script for your own preferences.
Open the script's .lua file with a "plain text" editor (I recommend Notepad++), and find the following line:

Code: Select all

SZ_SwapViewMode.modeToSwap = MOHO.LDQ_WIREFRAME
(If your text editor is capable of showing line numbers, it's line 51)

So, to make it strokes instead of wireframe, change the line to the following:

Code: Select all

SZ_SwapViewMode.modeToSwap = MOHO.LDQ_OUTLINES
The entire list of available options can be found here: http://mohoscripting.com/modules/MOHO#L ... ay_quality

You can combine multiple options using a plus sign, for example:

Code: Select all

SZ_SwapViewMode.modeToSwap = MOHO.LDQ_OUTLINES + MOHO.LDQ_LABELS

Re: Button script to swap the view to Wireframe and back

Posted: Mon Jun 08, 2020 8:00 am
by velu
Hi, When selecting "swap view mode" image layer also hiding. Is it possible only the selected object will be in wireframe mode like layer visible on/off.

Re: Button script to swap the view to Wireframe and back

Posted: Mon Jun 08, 2020 4:06 pm
by Stan
velu wrote: Mon Jun 08, 2020 8:00 am Hi, When selecting "swap view mode" image layer also hiding. Is it possible only the selected object will be in wireframe mode like layer visible on/off.
You can try changing the line 51 to:

Code: Select all

SZ_SwapViewMode.modeToSwap = MOHO.LDQ_WIREFRAME + MOHO.LDQ_IMAGES

Re: Button script to swap the view to Wireframe and back

Posted: Tue Jun 09, 2020 7:50 am
by velu
Hi San,

Thank you very much!