• Global community
• Language:
• Deutsch
• English
• EspaÃ±ol
• FranÃ§ais
• PortuguÃªs
• æ—¥æœ¬èªžã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£
Dedicated community for Japanese speakers
• í•œêµ­ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Exit Search
• Random scaling order for multiple objects

# Random scaling order for multiple objects

Explorer ,
Dec 06, 2019 Dec 06, 2019

Copied

Hello,
I have a circle with lots of stars inside (as shown in image) and I want to make the stars appear randomly scaling up. Whats the best way of doing that other than manually? Is there an expression I can use? It's better for the stars to be in the same layer or each one in a separate layer?

Thank you!

TOPICS
Expressions , How to , Resources

Views

3.6K

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Community Expert , Dec 06, 2019 Dec 06, 2019

If each star is a layer, a scale expression like this should work:

tTotal = 3; // duration of entire animation
seedRandom(index,true);
[s,s]

Dan

9 Replies 9
Community Expert ,
Dec 06, 2019 Dec 06, 2019

Copied

I would use CC Particle World. Create a single small star on a shape layer, add CC Particle World and make these adjustments. The X and Y radius determine the size of the circle:

Using multiple shapes and a few expressions is also possible but it's going to take a bunch of work and fiddling around. Unless the stars must end up in s specific position and have a specific number, this is probably the easiest solution. Playing with the random property at the bottom of the effect will change the shape of the pattern.

When you get the stars the way you want them, pre-compose moving all attributes then use the Layer>Time>Enable Time Remapping  (Alt/Option + Ctrl/Cmnd + t) then set a keyframe at the time you want, press K to move to the last time remapping keyframe and delete it.

There you go. Should take about 10 minutes.

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Explorer ,
Dec 06, 2019 Dec 06, 2019

Copied

Thank you for your answer! However, the stars have to end in the specific places shown in the picture, so I don't know if particles would work in this case... the stars are shape layers from illustrator.

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Expert ,
Dec 06, 2019 Dec 06, 2019

Copied

If you need specific places you can put a bunch of stars, all on a single layer, in the place you want them, press the U key twice to reveal all modified properties, then set keyframes for PolyStar>Transform Polystar>Scale and Opacity, then just drag the keyframes around in the timeline. Here's the manual workflow.

• Select the PolyStar tool and draw as many stars as you want on a single shape layer
• Type fill in the search field and select all of the Fills for all polystar shapes in the layer and delete them
• Type stroke in the search field and select all of the strokes in the shape layer and delete them
• Use the Add button to add a new fill at the bottom of the shapes stack
• Type opacity, scale in the timeline search field to reveal all of the Polystar>transform> scale and opacity properties
• Drag a selection around all of the scale and opacity settings and set keyframes for zero and zero
• Move down the timeline a few frames and set new keyframes for scale and opacity of 100
• Start grabbing keyframes in groups and slide them around the timeline to randomize the appearance of each star

That's about it. The search field in the Timeline makes it easy to find the properties and set a bunch of them at once. Here's what that looks like:

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Expert ,
Dec 06, 2019 Dec 06, 2019

Copied

If each star is a layer, a scale expression like this should work:

tTotal = 3; // duration of entire animation
seedRandom(index,true);
[s,s]

Dan

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Explorer ,
Dec 08, 2019 Dec 08, 2019

Copied

Thank you a lot Dan! This is exactly what i wanted!

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
New Here ,
Sep 26, 2022 Sep 26, 2022

Copied

Hello Dan,

Is there a way to add bounce or ease to the random scaling animation of these assets?

Best

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Community Expert ,
Sep 26, 2022 Sep 26, 2022

Copied

LATEST

You could add ease by changing this line:

``s = linear(time,myDelay,myDelay+myFade,0,value[0]);``

to this:

``s = ease(time,myDelay,myDelay+myFade,0,value[0]);``

Bounce would be trickier, and would depend on exactly what you had in mind.

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Valorous Hero ,
Dec 06, 2019 Dec 06, 2019

Copied

If you used Shape Layers to create the stars and they are all on a single Shape Layer, you can place all of them into a Shape Group - select all the Shape>Content props and hit CTRL+G, to Create a Shape Group containing all the selected Shape>Paths. Then add the Wiggle Transform Shape Operator and keyframe the Wiggle Shape Operator's, Wiggle Transform>Transform Scale Property.

If the default setting is too wiggly, set the Wiggles/Second prop to 0.5

HTH

Motion Graphics Brand Guidelines & Motion Graphics Responsive Design Toolkits

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Explorer ,
Dec 08, 2019 Dec 08, 2019

Copied

Thank you! I think this would work as well! But as I set the stars in separated layers, Dan's answer was the one that worked best for me.