Skip to main content
Inspiring
Nov 11, 2021 2:18 PM UTC
Question

Time param in wiggle expression

I'm curious about what exactly the time param does in a wiggle expression.

 

wiggle(freq, amp, octaves = 1, amp_mult = .5, t = time)

 

There is some sort of a noise function internally. If we supply layer time as the last param, is time simply added to the noise seed to obtain a value with required freq, octave and amplitude?

 

wiggle(freq, amp, octaves, amp_mult , t)

 

 

So, if we apply wiggle to x, internally does it become noise(x+t, Freq, amp, octaves, amp_mult) instead of

 

wiggle(freq, amp, octaves , amp_mult ) -

 

noise(x, freq, amp, octaves, amp_mult) without any time param?

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Mylenium
Legend
Nov 11, 2021 6:54 PM UTC

I'm not clear what you are asking. The time parameter bears no influence on a parameters value. It just defines the phase offset and phase lengths of the underlying sinus/ cosinus functions of the noise, hence it's only ever relevant if you need to control this part of the equation to create looping animations or integrate keyframed parameter values.

 

Mylenium

Translate
AnmolMAuthor
Inspiring
Nov 20, 2021 1:36 PM UTC

I was curious about the time param. Now, I understand. Cheers.

Translate
Mylenium
Legend
Nov 11, 2021 2:48 PM UTC

This parameter is typically only needed for looping expressions and simply defines an absolute value to be used for the internal seeding. Nothing fancy or mystical about it and most people never use it.

 

Mylenium

Translate
AnmolMAuthor
Inspiring
Nov 11, 2021 3:34 PM UTC

So without t, it is noise(x, Freq, amp, octaves, amp_mult) and with t it is noise(t, Freq, amp, octaves, amp_mult).

 

Would that be correct? So t replaces the seed?

Translate
Dan Ebberts
Community Expert
Community Expert
Nov 12, 2021 6:57 AM UTC

The time parameter just lets you retrieve the wiggle value at a particular time. wiggle() generates a continous wave, and by default you get the value correponding to the current time. The time parameter lets you override the default and get the value for a specific time.

Translate