Author Topic: 'Align toolbar' plugin  (Read 9694 times)

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
'Align toolbar' plugin
« on: September 29, 2016, 19:18:08 pm »
Had wrote the plugin for another useful CAD feature - align selected objects relative to the anchor object, common action in vector editors.

Done as a toolbar with buttons:
align left sides,
align centers,
align right sides,
align tops,
align middles (vertical centers)
align bottoms.

Selected objects may be aligned relative to the:
last selected object,
first selected object,
all selected objects,
all objects in drawing,
origin,
stock

Source code:
https://github.com/jkmnt/aligner

---

Version 1.2
* added support for group align if Groups plugin is installed

Version 1.1
*  Added icons provided by dh42
*  Added 'align relative to origin' mode
« Last Edit: December 27, 2016, 22:59:08 pm by jk »

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4418
    • View Profile
Re: 'Align toolbar' plugin
« Reply #1 on: September 29, 2016, 19:57:19 pm »
I tried it with two circles and it works well, good idea for a plugin.
Made in England

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 2964
    • View Profile
Re: 'Align toolbar' plugin
« Reply #2 on: September 29, 2016, 23:54:20 pm »
I can use that one, definitely. Thanks for your effort..

Soon as I figure how to it.. ;) :D ;D ;D
« Last Edit: September 29, 2016, 23:59:23 pm by Bubba »
My 2ยข

Win 10 64 bit, CB [1.0} rc 1 64 bit, Mach3, ESS, G540

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 3965
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: 'Align toolbar' plugin
« Reply #3 on: September 30, 2016, 00:21:10 am »
Nice.  I actually used a screen set editor that had that feature and it made me miss it in other things.  Took me a few seconds to figure out how to make it work, but then it was easy to use. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6078
    • View Profile
    • Cambam V1.0 French Doc
Re: 'Align toolbar' plugin
« Reply #4 on: September 30, 2016, 00:51:43 am »
Hello

Another very good addition, thanks !!

Quote
PS Icons artists are welcome :-)

I'll have a look when time permit. (maybe with another background color than green ? ... any advice ?)

A suggestion ; maybe also add a "to origin" in the list to use the center of the cross as reference ?

++
David
« Last Edit: September 30, 2016, 00:53:53 am by dh42 »

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: 'Align toolbar' plugin
« Reply #5 on: September 30, 2016, 06:50:01 am »
Thanks for replies.

Find another good use for it yesterday: placing circle for drilling in center of dxf circle, which imported
as a lot of tiny segments.

Quote
I can use that one, definitely. Thanks for your effort..

Soon as I figure how to it.. ;) :D ;D ;D

Just select some objects and click icons - it will come :-)

Quote
I'll have a look when time permit. (maybe with another background color than green ? ... any advice ?)

A suggestion ; maybe also add a "to origin" in the list to use the center of the cross as reference ?

Added 'to origin' (it was easy), covers some usecases of built-in Align.
Will release it with the icons then.

I think another shade of green would be ok, to signal "it's for drawing, but not a drawing tool".

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6078
    • View Profile
    • Cambam V1.0 French Doc
Re: 'Align toolbar' plugin
« Reply #6 on: September 30, 2016, 16:17:20 pm »
Hello,

Some icons ;)

++
David

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: 'Align toolbar' plugin
« Reply #7 on: September 30, 2016, 16:36:18 pm »
Nice icons, thank you.
Got to embed them soon :-)

---
First post updated to version 1.1 with icons
« Last Edit: September 30, 2016, 17:02:45 pm by jk »

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2343
    • View Profile
Re: 'Align toolbar' plugin
« Reply #8 on: September 30, 2016, 19:35:56 pm »
This is something I've been talking about many times and a feature I miss badly, being accustomed to it in other drawing programs.
Haven't tried it yet but sounds promising.
Just moved to another place and everything is still in boxes and bags :)

Offline Dragonfly

  • CNC Jedi
  • *****
  • Posts: 2343
    • View Profile
Re: 'Align toolbar' plugin
« Reply #9 on: October 13, 2016, 15:08:26 pm »
Gave it a quick try and it works :)  Good Job!

Offline jk

  • Wookie
  • ****
  • Posts: 265
    • View Profile
Re: 'Align toolbar' plugin
« Reply #10 on: December 27, 2016, 23:01:08 pm »
First post updated with version 1.2

* added support for group align if Groups plugin is installed

If objects to be aligned are belong to group, they are treated as a single object.
Align + Groups = nice combo )

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6078
    • View Profile
    • Cambam V1.0 French Doc
Re: 'Align toolbar' plugin
« Reply #11 on: December 28, 2016, 00:12:18 am »
Good idea !!

Thanks for that ;)

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4418
    • View Profile
Re: 'Align toolbar' plugin
« Reply #12 on: December 28, 2016, 07:44:49 am »
jk,

Good idea and thanks. I like the new icons too.
Made in England

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 3965
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: 'Align toolbar' plugin
« Reply #13 on: December 31, 2016, 17:41:16 pm »
First post updated with version 1.2

* added support for group align if Groups plugin is installed

If objects to be aligned are belong to group, they are treated as a single object.
Align + Groups = nice combo )

Now THAT could be really useful. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 3965
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: 'Align toolbar' plugin
« Reply #14 on: December 31, 2016, 17:42:19 pm »
I need to install V1.0 and add plugins to do testing, but today I have to go shopping (yech) and build some shelves.  Maybe tomorrow. 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com