Skip navigation
Currently Being Moderated

Aligning stars...

Jul 25, 2012 2:30 AM

Hi...

 

Am looking to align several stars (five pointed ones) centrally... (problem is the horizontal alignment). Question is, how does one go about it?

 

I've tried / know the following:

 

1. The bounding box is not 'related' to the centre of the star - so have gone the route of manually shifting the centre. Duplicating and resizing the star... it doesn't align on the horizontal.

 

2. Have tried not shifting the centre. Same result as 1. above

 

3. Have tried the Transform route, created multiple stars, expanded and ungrouped. Done with both the manually adjusted centre as well as the default centre. Same as 1. above

 

4. Have tried creating a circle and aligning the stars to that... no luck

 

In all cases the smaller copies seem to ride upwards... meaning that the top edges are closer to each other and the bottom edges are gapped more.

 

Important point is copies... the original aligns fine to a circle. The copies don't.

 

Yes, it's possible to grab the centre points and align them but surely there must be an 'automatic' way?

 

BTW, have been trying this only with a 5-pointed star - as in the US flag. I doubt the problem exists in a star with an even number of points.

 
Replies
  • Currently Being Moderated
    Jul 25, 2012 2:57 AM   in reply to shunithD

    The bounding box is not 'related' to the centre of the star

    Here you hit the nail on the head. So what you have to do is to find the star's geometrical centre like this (use Smart Guides to help):

    Picture 1.png

    Using the place where the lines cross as your centre, draw a  rectangle larger (higher) than the star's bounding box, colour it None and group it with the star. Delete the two lines. Now you can align automatically.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 3:25 AM   in reply to shunithD

    Hi Shunith, long time no see.

     

    A silly and simple way of doing the first part:

     

    1) Copy the Star to the front,

    2) Object>Path>Average (this will give you 10 Anchor Points on top of one another at the centre),

    3) Shift+Alt/Option+Drag with the Rectangle (or Ellipse) Tool from the centre (where the Smart Guides say anchor point) to get the larger square (or circle),

    4) Delete the averaged path from 2).

     

    And what Steve said.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 3:37 AM   in reply to shunithD

    Shunith (after cross posting),

     

    When I group the star and the circle (made any one of the three ways described), move a few copies horizontally and reduce one or more of them, all centres are kept aligned vertically.

     

    Maybe there is something more hidden in this.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 3:51 AM   in reply to Jacob Bugge

    Yep, or use a circle instead of the rectangle that I first suggested.

     

    The point being that the centre of the circle/rectangle must be on the geometrical centre of the star, not the centre of its bounding box.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 6:20 AM   in reply to shunithD

    Shunith,

     

    After the coldest, wettest, cloudiest, and most thunderful, June anyone can remember and a cool start of July, now it fianlly seems to be summer here (harvest is/will be late and the tallest maize round here is about waist high).

     

    With the star and circle (or square) grouped, I can reduce/enlarge the size flawlessly; with the circle I can also see that the centres coincide when I select all.

     

    So I suspect something else is happening.

     

    You do have Align to Pixel Grid unticked, no?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 6:42 AM   in reply to shunithD

    Reckon you must be doing summat daft.

    You must group the none-coloured circle or rectangle with the star.

    Then you can scale, align, wotever.

    Picture 1.png

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 8:58 AM   in reply to shunithD

    No wonder you missed a step, Shunith.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 9:22 AM   in reply to shunithD

    Any time, Shunith :-)

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 26, 2012 4:02 AM   in reply to shunithD

    Hi, Shunith (and Steve and Jacob),

     

    You can also generate the circle with Sato Hiroyuki's Circumcircle script:

     

    http://park12.wakwak.com/~shp/lc/et/en_aics_script.html#circumcircle

     

    As far as I know it works on all regular polygons and all regular star polygons.

     

    Peter

     

    Edit: Actually, the star Steve shows fits neither definition as I understand them. Maybe the script works on all equilateral shapes?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points