ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Wiggle reset

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gintaras WickWiggle reset
by on Dec 29, 2016 at 5:11:14 pm

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!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]