Script Error when toggeling lines off
All  1-3  4

Previous
 From:  Michael Gibson
10964.4 In reply to 10964.1 
Hi Edwin, I guess it looks like the script will throw an error if you have managed somehow to create a solid/surface object that has no edges in it, which isn't supposed to happen. Maybe there's something like a solid that's squashed down to a point.

If you update your shortcut key script to this does it work ok then? :

script: /* Toggle edge display */ var breps = moi.geometryDatabase.getObjects().getBReps(); var hide = -1; for ( var i = 0; i < breps.length; ++i ) { var edges = breps.item(i).getEdges(); if ( edges.length != 0 ) { if ( hide == -1 ) { hide = !edges.item(0).hidden; } edges.setProperty( 'hidden', hide ); } }


- Michael
  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

 

 
 
Show messages: All  1-3  4