display hidden line toggle

Next
 From:  val2
10700.1 
is there a short cut to turn hidden lines on and off?

thanks,

Val
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10700.2 In reply to 10700.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 ); }

EDITED: 21 May 2022 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  val2
10700.3 
Thanks, I appreciate it.
val
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mk (MARKY)
10700.4 In reply to 10700.2 
Cool!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Markog (MRAKGR)
10700.5 In reply to 10700.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  val2
10700.6 In reply to 10700.5 
script:moi.view.showHiddenLines =! moi.view.showHiddenLines;

this one works.

Val
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Markog (MRAKGR)
10700.7 In reply to 10700.6 
Thank you.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10700.8 
Corrected maybe an old one for previous version???
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  val2
10700.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
10700.10 In reply to 10700.9 
Yep it's from there that i put on my site many years ago! ;)
https://moiscript.weebly.com/ptr1.html
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All