Time param in wiggle expression
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks, that makes sense.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I was curious about the time param. Now, I understand. Cheers.

