MoI discussion forum
MoI discussion forum

Full Version: display hidden line toggle

From: val2
19 May   [#1]
is there a short cut to turn hidden lines on and off?

thanks,

Val
From: Frenchy Pilou (PILOU)
19 May   [#2] In reply to [#1]
This one for your asked question...
script:moi.view.showHiddenLineCurves = !moi.view.showHiddenLineCurves; moi.view.showHiddenLineEdges = !moi.view.showHiddenLineEdges;

seems the above don't work for any reasons :( - this one yes! thx to Val2 :)
script:moi.view.showHiddenLines =! moi.view.showHiddenLines;

And this other one for that! ;)
​script:/* Toggle Wire / faces */var breps = moi.geometryDatabase.getObjects().getBReps(); var hide = true; for ( var i = 0; i < breps.length; ++i ) { var faces = breps.item(i).getFaces(); if ( i == 0 ) hide = !faces.item(0).hidden; faces.setProperty( 'hidden', hide ); }


From: val2
19 May   [#3]
Thanks, I appreciate it.
val
From: mk (MARKY)
20 May   [#4] In reply to [#2]
Cool!
From: Markog (MRAKGR)
21 May   [#5] In reply to [#2]
The last one works, but the first one does not for me. It does not toggle the View -> Display hidden lines in the options, nor anything else that I can see.
From: val2
21 May   [#6] In reply to [#5]
script:moi.view.showHiddenLines =! moi.view.showHiddenLines;

this one works.

Val
From: Markog (MRAKGR)
21 May   [#7] In reply to [#6]
Thank you.
From: Frenchy Pilou (PILOU)
21 May   [#8]
Corrected maybe an old one for previous version???
From: val2
21 May   [#9]
Not really sure, when it didn't work I went to here http://kyticka.webzdarma.cz/3d/moi/#ToggleHiddenLine and grabbed the command. You made me realize it had to already exist.
From: Frenchy Pilou (PILOU)
21 May   [#10] In reply to [#9]
Yep it's from there that i put on my site many years ago! ;)
https://moiscript.weebly.com/ptr1.html