MoI discussion forum
MoI discussion forum

Full Version: display hidden line toggle

Show messages: All  1  2-10

From: Frenchy Pilou (PILOU)
19 May 2022   [#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 2022   [#3]
Thanks, I appreciate it.
val
From: mk (MARKY)
20 May 2022   [#4] In reply to [#2]
Cool!
From: Markog (MRAKGR)
21 May 2022   [#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 2022   [#6] In reply to [#5]
script:moi.view.showHiddenLines =! moi.view.showHiddenLines;

this one works.

Val
From: Markog (MRAKGR)
21 May 2022   [#7] In reply to [#6]
Thank you.
From: Frenchy Pilou (PILOU)
21 May 2022   [#8]
Corrected maybe an old one for previous version???
From: val2
21 May 2022   [#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 2022   [#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

Show messages: All  1  2-10