Script for placing guitar frets
All  1  2-7

Previous
Next
 From:  Michael Gibson
5440.2 In reply to 5440.1 
Cool use of scripting Martin! - 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:  Martin (MARTIN3D)
5440.3 In reply to 5440.2 
That CenterAtOrigin script by you helped a lot.
Is it possible to draw something i.e. a line or a box via scripting?
  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
5440.4 In reply to 5440.3 
Hi Martin,

> Is it possible to draw something i.e. a line or a box via scripting?

It is, but all that kind of stuff is set up more for how the drawing commands work where you're picking things interactively in stages.

The way it works for a line for example is that you create a line "factory", set the values for its inputs and then the factory can generate an output. In the line command the inputs come from the results of a pointpicker.

In the future I want to add a more simplified interface for scripts with something like just a moi.geometryDatabase.createLine( start, end ) type call but that layer is not in place at the moment.

- 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:  Michael Gibson
5440.5 In reply to 5440.3 
There's a plug-in here which creates lines which you might be able to use as an example:
http://moi3d.com/forum/index.php?webtag=MOI&msg=5136.1

- 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:  Martin (MARTIN3D)
5440.6 In reply to 5440.5 
Thanks 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
 From:  Shaun (MOISHAUN)
5440.7 
Martin and Gibson. But where is Fender?
  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  2-7