Forum Replies Created

Page 1 of 3
  • Adam Levine

    May 8, 2016 at 3:05 pm in reply to: after effects multiple expressions

    To what property group/ Property did you add those expressions?

  • Adam Levine

    May 8, 2016 at 7:24 am in reply to: Layer renaming script problem

    Thank you Master Dan

  • Adam Levine

    May 7, 2016 at 7:31 pm in reply to: Layer renaming script problem

    I only want to understand this line

    if (myLayer.name.indexOf(targetText == 0)){

  • Adam Levine

    May 7, 2016 at 5:55 pm in reply to: Layer renaming script problem

    Thank you so much master Dan. I need a little more help from you. Can you explain me this codes that you gave me.

    var myLayer = app.project.activeItem.layer(1);
    if (myLayer.name.indexOf(targetText == 0)){
    myLayer.name = replacementText = replacementText + myLayer.name.substr(targetText.length);
    }

  • Adam Levine

    May 7, 2016 at 5:14 pm in reply to: Layer renaming script problem

    Thank you master dan. It works perfect. I need a more help from you. In my script there’s a little problem. If I set something text in the Find and the replace it changing whole layer name to the text I used as Replace text.

    For example: But I want to do like this. If layer name is “My Layer 01” and I input to find text as “My” and input replace text as “White”.
    Then Layer name must change as “White Layer 01” . How to that?

  • Adam Levine

    April 29, 2016 at 10:44 am in reply to: save file with UTF8 encoding

    Ok! I fixed my problem.

  • Adam Levine

    April 26, 2016 at 6:31 pm in reply to: Targeting Layer name

    Thank you Master Dan. It works Perfect.
    Thank you so much again.

  • Adam Levine

    March 15, 2016 at 5:40 am in reply to: Modifying expression times to layer’s inPoint

    Thank you for your gratitude master Dan. But sorry asking again. Can give me an idea to modify my expression please.

  • Adam Levine

    March 14, 2016 at 9:17 pm in reply to: Modifying expression times to layer’s inPoint

    First thank you master Dan for your quick reply. So I changed the expression like this as you said. But it’s not working. 🙁 Sorry for asking. Can you give me a another idea please.

    // Ease and Wizz 2.0.3 : inExpo : All keyframes
    // Ian Haigh (https://ianhaigh.com/easeandwizz/)
    // Last built: 2012-10-11T16:37:31+11:00

    // some defaults
    var p = 0.8; // period for elastic
    var a = 50; // amplitude for elastic
    var s = 1.70158; // overshoot amount for "back"

    function easeandwizz_inExpo(t, b, c, d) {
    return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
    }

    function easeAndWizz() {
    var n = 0;
    if (numKeys > 0) {
    n = nearestKey(time).index;
    if (key(n).time > time) { n-- }
    }

    try {
    var key1 = key(n);
    var key2 = key(n+1);
    } catch(e) {
    return null;
    }

    // determine how many dimensions the keyframes need
    var dim = 1; // It's gotta have at least ONE dimension
    try {
    key(1)[1];
    dim = 2;
    key(1)[2];
    dim = 3;
    } catch(e) {}

    sX = value[0];
    eX = thisComp.layer("ctrl").effect("Value")(1);
    t1 = inPoint;
    t2 = inPoint + 2;
    if (time < t1)
    v1
    else if (time > t2)
    v2
    else{
    d = t2 - t1;
    dv = eX - sX;
    t = (time - t1)/d;
    v1 + dv*Math.exp(10*(t-1));
    }

    if (dim >= 2) {
    sY = value[1];
    eY = value[1];

    if (dim >= 3) {
    sZ = value[2];
    eZ = value[2];
    }
    }
    if ((time < key1.time) || (time > key2.time)) {
    return value;
    } else {
    val1 = easeandwizz_inExpo(t, sX, eX, d, a, p, s);
    switch (dim) {
    case 1:
    return val1;
    break;
    case 2:
    val2 = easeandwizz_inExpo(t, sY, eY, d, a, p, s);
    return [val1, val2];
    break;
    case 3:
    val2 = easeandwizz_inExpo(t, sY, eY, d, a, p, s);
    val3 = easeandwizz_inExpo(t, sZ, eZ, d, a, p, s);
    return [val1, val2, val3];
    break;
    default:
    return null;
    }
    }
    }

    (easeAndWizz() || value);

  • Adam Levine

    March 13, 2016 at 6:55 pm in reply to: Need a assist to understand this expression lines

    Thank you so much Murat Atasoy for your best explain. It helped me lot to find answers for my problems. Thank you again.

Page 1 of 3

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