Skip to main content
S_ A
Inspiring
May 9, 2025
Answered

how to write expression in such case -14 (scale, wiggle)

  • May 9, 2025
  • 1 reply
  • 670 views

 

 

Hi,

 

I want the wiggle expression to repeat the bigger scale in a non regular basis, But the wiggle only makes the star bigger once in the entire 30 sec long comp! How should I write the expression so trhat AE can understand what I want. Thank you.

 

Please guide me.

 

 

 

 

 

 

 

Correct answer Dan Ebberts

How big it gets depends on the pre-expression value you have it set at. Wiggle (10,10) is only going to increase that value by 10%. So if you have the scale value set to 5%, the max value will be roughly 15%. So you may need to adjust the the pre-expression value as well as the wiggle amplitude to get the range you want. Also, unless you want non-uniform scaling you might want to do something like this:

freq = 10;
amp = 10;
s = wiggle(freq,amp)[0];
[s,s]

1 reply

Dan Ebberts
Community Expert
Community Expert
May 9, 2025

wiggle() may not be the right tool. What is the affect you're going for, exactly?

S_ A
S_ AAuthor
Inspiring
May 10, 2025

I want the star twinkling based on scale. I tried loop out. But that is robotic... Too much repetation and no aesthetic vibe. Then I tried wiggle. I love the reasult. But it makes the star too tiny... Only once it gets bigger 🥺😶

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
May 10, 2025

How big it gets depends on the pre-expression value you have it set at. Wiggle (10,10) is only going to increase that value by 10%. So if you have the scale value set to 5%, the max value will be roughly 15%. So you may need to adjust the the pre-expression value as well as the wiggle amplitude to get the range you want. Also, unless you want non-uniform scaling you might want to do something like this:

freq = 10;
amp = 10;
s = wiggle(freq,amp)[0];
[s,s]