0
Community Beginner
,
/t5/after-effects-discussions/if-lt-expression/td-p/12708282
Jan 26, 2022
Jan 26, 2022
Copy link to clipboard
Copied
Hi looking for a bit of help on an expression, I currently have a displacement map controlled by a slider control, I'm using this expression:
posterizeTime (4);
w = wiggle(8,40)
Math.max(w,0)
To make it wiggle upto 40 pixels, what I want is for it only to displace when between say, 20-40 (I still want the wiggle to range from 0-40 - so that it happens less often - I just dont want it displacing by like 1px etc).
So basically I'm trying to get a stronger effect happen every so often, rather than cycling through
Probably very simple just don't know my way around them too well!
Thanks
TOPICS
Expressions
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Jan 26, 2022
Jan 26, 2022
Something like this maybe:
posterizeTime (4);
w = wiggle(8,40)
w > 20 ? w : 0
Community Expert
,
/t5/after-effects-discussions/if-lt-expression/m-p/12708460#M192306
Jan 26, 2022
Jan 26, 2022
Copy link to clipboard
Copied
Something like this maybe:
posterizeTime (4);
w = wiggle(8,40)
w > 20 ? w : 0
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
shmiths
AUTHOR
Community Beginner
,
LATEST
/t5/after-effects-discussions/if-lt-expression/m-p/12708575#M192309
Jan 26, 2022
Jan 26, 2022
Copy link to clipboard
Copied
That's perfect -thanks!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

