Make the star. Make a null layer; its Anchor point position defaults to the exact center of the comp. Place the star as far away from the null as you'd like it and parent it to the null. Animate the rotation of the null. Animate the rotation of the star. Done.
Dave ! Always helping me out Thanks a million
Hey there ! Well I tried that , but it only seems to make the large circle rotation work , so had to change the anchor point for the star in order to make it rotate around itself . is there anyway i can place its anchor point exactly at it's center so it can be rotating exactly around its center ?
Nope! You gotta tweak the anchor point until it's right. The good news -- once it's right, you can duplicate it for the other stars.
First you need each star on a separate layer. I'd use a shape layer. Try this:
- Create a new comp
- Select the Polystar tool
- Click anywhere in the comp window, hold down the shift key and drag out a star
- Select the Shape layer tool and then press the U key twice to reveal everything that is not at the default position and value
- Set the final size of your star by adjusting the inner and outer radius (keep 5 points for now, you can change that later)
- Select the Transform Polystar 1> position property, right click and reset to center the star on the layer's anchor point
- I would probably rotate using the layer's normal rotation property, but you could use the Transform Polystar 1 rotation property if you like
- Animate your rotation
- Add a null to the center of the comp
- Move the first star shape layer straight up (adjust Y only) so that it is exactly where you want the circle's boundary to be
- Duplicate the star shape layer select the duplicate and press the U key to reveal the animated rotation value and delete the keyframes
- Select the rotation property of the duplicate and press the Alt/Option key to add an expression to the duplicate
- Use the expression pickwhip and drag from the duplicate's rotation property to the original's rotation property to tie them together with the expression
- With the duplicate selected duplicate the layer as many times as you want stars in your circle. If you want 4 stars you already have 2 so press Ctrl/Cmnd + D twice. If you want 10 then use the shortcut 8 more times.
- You should now have all of the copies of the star in the same position above the null
- Divide 360 by the number of stars you have (360 / 10 = 36) and memorize the number
- Parent the top star to the null and rotate the null by the appropriate value (36º)
- Parent the second star to the null and add the value to the rotation value by selecting rotation, moving the cursor to the right and typing + 36
- Repeat until you have distributed all of the stars around the null in a circle
- Animate the rotation property of the Null
- If you want to change the speed or direction of all the stars select the original (maybe name it master so it is easy to find) and change the rotation animation. All others will follow because of the expression.
- You're done. EZ PZ
Rick ! Thanks alot for taking the time with this detailed answer !
If you are in cc 12.1 or up, you don't necessarily have to tweak the anchor point until its right - you can also use the hotkey cmd+opt+home (mac) or ctrl+alt+home (windows) to set the anchor point to the center of the layer. If your star is geometrically perfect, I believe it will be the center.
Also, depending on how you want the stars to relate to each other, it may be possible to do this all within one shape layer using a repeater if you want all of the stars spinning at the same rate. I've included a screen shot below - pay special note to the use of a group, this allows you to transform the star off the origin before repeating it so that the star forms a circle. Also I've added an expression here that uses the number of copies on the repeater to space them out automatically.
If you want the stars to move at different rates, or all have the same rotation in relation to the screen I think you may have to use Rick's method above which is also a great suggestion!