Skip to main content
Known Participant
January 26, 2022
Answered

If < expression

  • January 26, 2022
  • 1 reply
  • 344 views

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

This topic has been closed for replies.
Correct answer Dan Ebberts

Something like this maybe:

posterizeTime (4);
w = wiggle(8,40)
w > 20 ? w : 0

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
January 26, 2022

Something like this maybe:

posterizeTime (4);
w = wiggle(8,40)
w > 20 ? w : 0
shmithsAuthor
Known Participant
January 26, 2022

That's perfect -thanks!