Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Time param in wiggle expression

Contributor ,
Nov 11, 2021 Nov 11, 2021

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?

TOPICS
Expressions
568
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 11, 2021 Nov 11, 2021

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 11, 2021 Nov 11, 2021

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 11, 2021 Nov 11, 2021

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 20, 2021 Nov 20, 2021

Thanks, that makes sense.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 11, 2021 Nov 11, 2021

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 20, 2021 Nov 20, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines