Some questions about the Freehand Sketch tool
All  1-8  9-13

Previous
Next
 From:  Frenchy Pilou (PILOU)
9606.9 In reply to 9606.8 
Thx for the precision! ;)
Added to the French site :)
http://moiscript.weebly.com/plan-aux.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

Previous
Next
 From:  Michael Gibson
9606.10 In reply to 9606.7 
Hi Pilou, or this variation will work as a toggle, if you use the same shortcut a second time it should reset it:

script: /* Set cplane to selected face or reset on second use */ var faces = moi.geometryDatabase.getSelectedObjects().getFaces(); var was_set = false; if ( faces.length == 1 ) { var f = faces.item(0); var cp = moi.view.getCPlane(); var vm = moi.vectorMath; if ( f.isPlanar ) { var p = f.planarFrame; if ( !(vm.pointsAreEqual(p.origin,cp.origin) && vm.pointsAreEqual(p.xaxis,cp.xaxis) && vm.pointsAreEqual(p.yaxis,cp.yaxis)) ) { moi.view.setCPlane( p ); was_set = true; } } } if ( !was_set ) moi.view.resetCPlane();

- 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

Previous
Next
 From:  Frenchy Pilou (PILOU)
9606.11 In reply to 9606.10 
Excellent! Added! :)

EDITED: 6 Dec 2019 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:  Marc (TELLIER)
9606.12 
Ooh, I like this script !
  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:  nameless
9606.13 In reply to 9606.10 
Perfect!
  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-8  9-13