Samardac Method
 1-7  8-27  28-47  48-50

Previous
Next
 From:  ndrakey
6058.48 
Samardac Method Hotkeys:

H=script: /*! Show/Hide edges --- H*/ var breps = moi.geometryDatabase.getObjects().getBReps(); var hide = true; for ( var i = 0; i < breps.length; ++i ) { var edges = breps.item(i).getEdges();

Doesnt Work anymore !?
Is there a new Script available for hiding and showing Edges on an Object per toggling ?
  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:  mkdm
6058.49 In reply to 6058.48 
Hi ndrakey,

That's the script i use to toggle the edges visibility on the selected entities (surfaces or polysurfaces/solids) :

script: /*! Show-hide edges on selected objects */var breps = moi.geometryDatabase.getSelectedObjects().getBreps(); for ( var i = 0; i < breps.length; ++i ) {var brep = breps.item(i);brep.getEdges().invertProperty( 'hidden');}

It works for me.

Nice day,

Marco.
  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:  Michael Gibson
6058.50 In reply to 6058.48 
Hi ndrakey,

you wrote:
> H=script: /*! Show/Hide edges --- H*/ var breps = moi.geometryDatabase.getObjects().getBReps();
> var hide = true; for ( var i = 0; i < breps.length; ++i ) { var edges = breps.item(i).getEdges();>
> Doesnt Work anymore !?

The script you show above must not be the full script - it looks like you've only got the front part of it. That script code you have there just loops over things but does not perform any actions, that's why it doesn't work.

Try Marco's script above, or look more closely at where you got the original script because you didn't get all of it.

- 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:  1-7  8-27  28-47  48-50