Hello, I'm learning AE scripting and came across a problem:

I want to make an object wiggle only vertically and only with positive value, so far I've got this:

**x** = wiggle(2,500);

**y** = Math.abs(w[1]);

[value[0], value[1]-**y**]

I also want to make so that when **y** reaches a certain value (for example 100) the wiggle would go back to its original position, so **y** (or **x**) would reset back to 0 and start over again.

//

An alternative could be if wiggle/**x**/**y** would reset after a certain amount of time(a random time period would be amazing, for example from 1 to 2 seconds

Any help would be appreciated!