Skip to main content
S_ A
Inspiring
September 7, 2024
Question

How to write expression in such case - 9

  • September 7, 2024
  • 1 reply
  • 365 views

Hi,

 

I want the hand to move/wiggle only between 0/360 to 180. I dnt want it to cross 180. How will I write expression in such case using wiggle.

(I had to reduce the screento gif export color option only to 12, otherwise file size is too big to upload, Adobe dsnt allow me to upload gif , thts why the gif is acting weird. am sorry :I ) 

Thank you. 

 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
September 7, 2024

I think I'd set it up with a slider (set to 100 initially) to adjust the overall range, and then use an expression like this:

w = wiggle(0.5,180)-value;
offset = -90;
mult = effect("Slider Control")("Slider")/100;
offset + w*mult

Then adjust the offset variable and the mult slider to get exactly what you want.

 

S_ A
S_ AAuthor
Inspiring
September 7, 2024

Thank you so much, could not figure out the math yet. Thank you so much for showing how to write it.