Forum Replies Created

Page 248 of 277
  • Filip Vandueren

    July 19, 2005 at 11:22 pm in reply to: Loopable Wiggle?

    Clever 😎

    BIt simpler than mine, haha

  • Filip Vandueren

    July 19, 2005 at 10:14 pm in reply to: Question for the scripting wizards…
  • Filip Vandueren

    July 19, 2005 at 10:14 pm in reply to: Question for the scripting wizards…
  • It’s probably an offending codec, and compressed audio. Try to convert it to a different codec and uncompress audio using Quicktime Pro.

  • Filip Vandueren

    July 19, 2005 at 9:58 pm in reply to: Loopable Wiggle?

    Hi there,

    I wrote this a few months ago.
    It’s based on the 2D noise-function, and uses the logic that if you follow a circle through a “noise field”, you end up at the same value.
    You have to call the function and it just returns a number, so you still have to add that number to the current value.
    For 2 or 3 dimensional properties (position for example), you have to call it multiple times with different seeds:


    // for a 1-dimensional property: (loopTime is in seconds)
    value+loopedWiggle (freq=1,amp=50, oct=2, amp_mult= .5, t=time, loopTime=3, seed=200);

    function loopedWiggle (freq, amp, oct, amp_mult, t, loopTime, seed) {
    seedRandom(seed, timeless = true);
    startPos=random([5000,5000]);

    radius=(loopTime/Math.PI)*freq;
    // if the looptime is long, the radius should increase, otherwise the frequency would drop. 8-P

    maxValue=0;
    n=0;
    multiplier=1;
    for (i=1; i<=oct; i++) { radius=radius*(i-0.5); x=startPos[0] + Math.cos(degreesToRadians(360*t/loopTime + oct))*radius; y=startPos[1] + Math.sin(degreesToRadians(360*t/loopTime + oct))*radius; n += noise([x,y])*multiplier; maxValue += multiplier; multiplier *= amp_mult; } return n*amp; }

    for position (2d) you would start out with something like this:


    wiggledx=loopedWiggle (freq=1,amp=50, oct=2, amp_mult= .5, t=time, loopTime=3, seed=200);
    wiggledy=loopedWiggle (freq=1,amp=50, oct=2, amp_mult= .5, t=time, loopTime=3, seed=600);

    value+[wiggledx,wiggledy]

    function

  • Filip Vandueren

    July 19, 2005 at 9:58 pm in reply to: Loopable Wiggle?

    Hi there,

    I wrote this a few months ago.
    It’s based on the 2D noise-function, and uses the logic that if you follow a circle through a “noise field”, you end up at the same value.
    You have to call the function and it just returns a number, so you still have to add that number to the current value.
    For 2 or 3 dimensional properties (position for example), you have to call it multiple times with different seeds:


    // for a 1-dimensional property: (loopTime is in seconds)
    value+loopedWiggle (freq=1,amp=50, oct=2, amp_mult= .5, t=time, loopTime=3, seed=200);

    function loopedWiggle (freq, amp, oct, amp_mult, t, loopTime, seed) {
    seedRandom(seed, timeless = true);
    startPos=random([5000,5000]);

    radius=(loopTime/Math.PI)*freq;
    // if the looptime is long, the radius should increase, otherwise the frequency would drop. 8-P

    maxValue=0;
    n=0;
    multiplier=1;
    for (i=1; i<=oct; i++) { radius=radius*(i-0.5); x=startPos[0] + Math.cos(degreesToRadians(360*t/loopTime + oct))*radius; y=startPos[1] + Math.sin(degreesToRadians(360*t/loopTime + oct))*radius; n += noise([x,y])*multiplier; maxValue += multiplier; multiplier *= amp_mult; } return n*amp; }

    for position (2d) you would start out with something like this:


    wiggledx=loopedWiggle (freq=1,amp=50, oct=2, amp_mult= .5, t=time, loopTime=3, seed=200);
    wiggledy=loopedWiggle (freq=1,amp=50, oct=2, amp_mult= .5, t=time, loopTime=3, seed=600);

    value+[wiggledx,wiggledy]

    function

  • Filip Vandueren

    July 19, 2005 at 9:34 pm in reply to: Question for the scripting wizards…

    Hey Rook,

    here’s it’s ‘sister-script’ it does the same thing with vertical masks:

    https://www.vandueren.beforumstuff/jsx/maskedColumns.jsx

  • Filip Vandueren

    July 19, 2005 at 9:34 pm in reply to: Question for the scripting wizards…

    Hey Rook,

    here’s it’s ‘sister-script’ it does the same thing with vertical masks:

    https://www.vandueren.beforumstuff/jsx/maskedColumns.jsx

  • Filip Vandueren

    July 19, 2005 at 9:14 pm in reply to: calendar using expressions

    Oh,

    and don’t copy-paste it from your e-mail,
    go to the website and you’ll see that it looks different: I put some HTML tags in there (all the >code< -stuff )
    to layout it a bit, but in the e-mail they show up in the text, and they’re not supposed to be in the expression

    that’s prob. what went wrong.

  • Filip Vandueren

    July 19, 2005 at 9:14 pm in reply to: calendar using expressions

    Oh,

    and don’t copy-paste it from your e-mail,
    go to the website and you’ll see that it looks different: I put some HTML tags in there (all the >code< -stuff )
    to layout it a bit, but in the e-mail they show up in the text, and they’re not supposed to be in the expression

    that’s prob. what went wrong.

Page 248 of 277

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy