Copy link to clipboard
Copied
Hi community.
I have used the repeater to animate lines in a circular direction. The issue Im facing is getting an even number of rotation for the lines. Is it even correct in AE using decimals to achieve accurate rotation and positioning? for example, 34.3, or 34.5 etc etc. Or for multimedia online graphics the pixels must always default to a rounded off number, example: 34. 35, 56, etc etc.
My expression lets you choose any angle for the open part, and the project file is included. The included shape layer is all you need.
Copy link to clipboard
Copied
I think you are running into a simple math problem. If you want to fill an entire circle with shapes, you simply divide 360 by the number of shapes using an expression. For example, 360/33 = 10.90909091
If you want to use a portion of the arc (I assume your guideline at the bottom is the portion of the arc, you just need to do a little more math and adjust the circle's radius.
Here's the workflow I would follow.
arc = content("Rectangle 1").transform.rotation * -2;
n = content("Repeater 1").copies - 1;
arc/n​
That should get you there. I have included an AEP file with the solution. The easiest way to animate the number of copies is to add Radial Wipe to the Shape layer.
Copy link to clipboard
Copied
Yes, it's completely fine to use decimal values when working with rotation in After Effects' Repeater. In fact, it's often necessary if you're aiming for precision, especially when distributing elements evenly in a circular pattern. The key is to calculate the correct rotation angle based on how many copies you're creating.
For example, if you want to animate 10 lines around a circle, you would divide 360° by 10, which gives you 36° per copy. That value 36 would then be entered into the Repeater's Transform > Rotation field, and you'd keep the position at 0,0 to rotate around the center properly.
Using decimal values like 51.43° (which you'd get for 7 lines: 360 ÷ 7) is perfectly accurate and won’t cause any issues. Pixels and rotations in After Effects don’t have to be whole numbers precision is actually improved with decimal inputs. You also want to make sure your shape’s anchor point is centered correctly, as that affects how your shapes rotate.
If you’d like a more dynamic setup, you can even use expressions to divide 360 by the number of copies automatically, which is helpful if you're experimenting with different numbers. Just be sure not to round the numbers, as that can result in uneven spacing.
For a visual example, you might want to check out this video: Radial Shape Layer Repeater in After Effects it covers exactly what you're trying to achieve.
Copy link to clipboard
Copied
My expression lets you choose any angle for the open part, and the project file is included. The included shape layer is all you need.
Copy link to clipboard
Copied
Thanks, that's super cool!
Kind regards.
Copy link to clipboard
Copied
To take it one step further, is it possible to be able to make each rectangle line create the sequential reveal, appear one at a time from left to right, while increasing the copies?
Copy link to clipboard
Copied
The easiest solution for revealing the circle of dashes is to add Radial Wipe to the layer. Check out the sample comp.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now