Forum Replies Created

Page 30 of 32
  • Xavier Gomez

    November 26, 2012 at 11:23 pm in reply to: View Options, motion paths

    That would be super helpful, and very easy to implement (a small icon to click to enable motion path view even when the layer is deselected).

  • Looks like a plugin error, i bet you don’t encounter this with only buildt-in AE tools. Maybe you have a parameter set that the plugin developer hasnt thought of.

    Just trying to help 🙂

  • Xavier Gomez

    November 24, 2012 at 11:24 am in reply to: Moving existing keyframes with a .jsx-file

    There already exists a script that allows to move nearly everything (including keyframes) on a layer’s timeline:

    rd_scooter: link (by Jeff Almasol).

    If what you want is to write your own script, then you can look there to see how it works.

    Xavier

  • Xavier Gomez

    September 24, 2012 at 11:21 am in reply to: AE – Optimizing Lip-Sync or Keyframe-Handling

    Finally got it to paste it correctly:

    // the parameters to be tweaked;
    var thresh1=10; var extra1 = 30;
    var thresh2=20; var extra2 = 60;
    var dampling = 0.5;

    var sc = transform.scale // the keyframe value of the scale
    var audioAmp = thisComp.layer(“Audioamplitude 2”).effect(“Beide Kanäle”)(“Schieberegler”);
    var dt = thisComp.frameDuration;

    var t=time;
    var val= audioAmp.valueAtTime(t);
    var val_old = audioAmp.valueAtTime(t-dt);

    while(val_old>val && t>0){
    t -= dt;
    val=val_old;
    val_old=audioAmp.valueAtTime(t-dt);
    }
    var extra;
    if (val>thresh2) extra = extra2;
    else if (val>thresh1) extra = extra1;
    else extra = 0;

    sc + [0, extra * Math.exp(-dampling*(time-t))];

  • Xavier Gomez

    September 24, 2012 at 11:09 am in reply to: AE – Optimizing Lip-Sync or Keyframe-Handling

    What you are describing (reading audio amp values at periodical time intervals) doesnt look too good, not very convincing motion. It can be written like this:

    var sc = transform.scale // the keyframe value of the scale
    var T = 0.50 // the period at which the audio amp is read
    var t = time-(time%T);
    var audioAmp = thisComp.layer(“Audioamplitude 2”).effect(“Beide Kanäle”)(“Schieberegler”).valueAtTime(t);

    var extra;
    if (audioAmp>=20) extra = 60;
    else if (audioAmp>=10) extra = 30;
    else extra = 0;
    sc +[0,easeOut(time-t, 0,T, extra, 0)];

    ————

    I would like to suggest another expression but for some reason it won’t copy in the browser; part of the code is being chunked out, even if i copy it in the “code” box. Sorry.

    Xavier.

  • Xavier Gomez

    September 14, 2012 at 10:21 am in reply to: Why doesn’t this simple if statement work correctly?

    I just tried your expression and there is no error.
    So it works but maybe not the way you intented it.
    If you are trying to loop a linear motion from bottom to top it for sure cannot make it.

    You should tell what you actually want to do.

    Xavier.

  • Strings have a slice method: .slice(m,n)
    It removes the first m characters, keeps m-n, and removes the rest.
    the second parameter is optionnal so if n is not specified, .slice(m) removes the first m characters and keeps the rest.

    so maybe you can replace line[4] by

    the_place + divider + the_name.slice(3)

    —–

    Xavier

  • Xavier Gomez

    August 18, 2012 at 9:12 pm in reply to: addition of 2 vectors (javascript)

    Thank you for your answer.
    I opted for a loop and componentwise addition.
    But… I still find this feature very curious!

    Xavier.

  • Xavier Gomez

    August 14, 2012 at 7:20 am in reply to: script loading a function from text file

    So you have good knowledge and also a good hunch. That was it. Thank you !

  • Xavier Gomez

    August 11, 2012 at 10:58 pm in reply to: script loading a function from text file

    Wow !
    i just realised by reading another recent post in the forum that there is an eval() function and there is no need to copy the string to an actual file to evaluate it !!! Sorry for that.

    I could delete this post but i’d still appreciate an explanation for the behaviour described above.

Page 30 of 32

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