Skip to main content
Known Participant
April 2, 2015
Answered

Wiggle returning values modified by an amount greater than amplitude setting

  • April 2, 2015
  • 1 reply
  • 1281 views

Hi there... either I'm crazy or wiggle is misbehaving by a small margin.

I have a slider control set to an initial value of 50:

On that slider is an expression:

wiggle(1.5,50)

When I preview this in graph editor, the value is dipping below 0 occasionally! I've got a frame reading -0.15 and if I mouse over the graph it actually dips as low -0.45.

Shouldn't an amplitude of 50 on top of a starting value of 50 result in a number than ranges from 0 to 100? The value is also never rising to 100, but I'm willing to chalk that up to not running this out over a long enough duration to see all possible values.

Correct answer Dan Ebberts

As I recall, wiggle() has always been able to go slightly beyond the specified amplitude (I think I measured it once, but I don't remember how far it can go). You just need to factor in that possibility.

Dan

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
April 2, 2015

As I recall, wiggle() has always been able to go slightly beyond the specified amplitude (I think I measured it once, but I don't remember how far it can go). You just need to factor in that possibility.

Dan

pkrollAuthor
Known Participant
April 2, 2015

Ok cool. That's not bad or anything. I was mostly just curious as to whether I had somehow broken it. Good to know it can do that.

Inspiring
June 15, 2016

I have just discovered this same issue, kind of defeats the whole purpose of even having a amplitude argument if you have to use additional code to clamp the results !!!

It's a bit more than slightly as well, see the image below, I'd guess as much as 20% at the extremes...