Skip to main content
ninose11
Inspiring
January 18, 2024
Question

After Effects: How do you align all repeater stars the same way in a circle?

  • January 18, 2024
  • 2 replies
  • 614 views

I need 50 stars sligned the same way in a circle. I'm nearly there, but the problem is that my stars align according to the degree they're sitting in (red stars).

 

 

The image below is what I am trying to do with the Repeater Effect for my star. I need my stars all aligned the same way, like this:

What setting do I need to change in the repeater effect? I'm completely stumped. Thank you in advance for any help with this. 

This topic has been closed for replies.

2 replies

Community Expert
January 18, 2024

You won't be able to use the repeater or a combination of them because you cannot rearrange the order of the transform properties. Rotation happens after the position and anchor point.

 

You'll need 50 copies of the star shape, a parent null in the center, and an expression that rotates each star 360/15º for each copy of the star. If you set it up by layer index, you can create the first star and duplicate the layers. Something like this will work, but you will need to adjust the star size to compensate for the frame size of the comp.

//Contents/Polystar 1/Polystar 1 Transform/Rotation
m = index;
r = 360/50;
n = m * r - r;
-n

//Contents/Polystar 1/Transform Polystar 1/Position
t = - thisComp.height/2;
h = content("Polystar 1").content("Polystar Path 1").outerRadius;
y = t + h;
[0, y]

// Transform/Rotation
m = index;
r = 360/50;
n = m * r - r;

All you have to do then is duplicate the Shape Layer until you have 50 copies.

Pre-compose/Collapse transformations, and you are good to go. 

ninose11
ninose11Author
Inspiring
January 19, 2024

Thanks Mylenium and thank you very much for the expression Rick. Actually I just discovered a free plugin on aescripts "Circle Align" that seems to do just what I was looking for. But thank you very much all the same for your help. 🙏🙏🙏 

Mylenium
Legend
January 18, 2024

You'll have better luck using text on a circular path.

 

Mylenium