Forum Replies Created

Page 1 of 2
  • Neil Stubbings

    June 22, 2010 at 6:21 pm in reply to: Parent expression using Layer control effect

    oh wow!

    it works great! this is exactly what I was looking for!

    thanks a lot, Dan!


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 22, 2010 at 10:18 am in reply to: Parent expression using Layer control effect

    Hi Dan

    Thanks so much for looking into this!
    Buuuut, unfortunately it does not seem to work (i’ve gotten this far by myself before 🙂

    the layer with the expression follows the leader layer, but has no springy motion to it.
    Is it because the expression needs keyframes on its layer in order to calculate the springy motion?


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 22, 2010 at 10:01 am in reply to: Parent expression using Layer control effect

    uhm, ok let me put it this way:

    I want this expression:

    target = effect("Layer Control")("Layer").position; //select which layes it will follow
    seedRandom(index, true);
    delay = random(effect("Slider Control")("Slider"));
    delta = target.valueAtTime(time - delay) - target.valueAtTime(0);
    value + delta

    combined with this expression
    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time){
    n--;
    }
    }
    if (n == 0){
    t = 0;
    }else{
    t = time - key(n).time;
    }

    if (n > 0){
    v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
    amp = .05;
    freq = 4.0;
    decay = 2.0;
    value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
    }else{
    value;
    }


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 21, 2010 at 11:47 pm in reply to: Parent expression using Layer control effect

    or just think about it being a sausage character with 3 pins.
    one at the bottom, one in the middle and one at the top.
    moving the bottom one causes the sausage to move like an antennae, because middle lags behind bottom and top lags behind middle (together with the springy motion)

    but in order to create more motion (maybe make the sausage speak) the middle pin needs to be animated while the top one still keeps wobbling top the middle one’s motion, but the bottom one stays where it is…

    is my explanation as complicated as I think it is


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 21, 2010 at 11:40 pm in reply to: Parent expression using Layer control effect

    well simplified i want to do this:

    say I have 3 Layers: RED, GREEN, BLUE while GREEN is at the bottom, RED is in the middle and BLUE at the top

    I animate RED and GREEN follows RED with a delay and some springy motion.
    At the same time BLUE follows GREEN also with a delay and some springy motion (so in the animation GREEN lags behind RED and BLUE lags behind GREEN)

    Now I also want to animate GREEN while RED does nothing and BLUE follows GREEN with a delay and springy motion.

    In the end i want to add those expressions to puppet tool pins to get a wobbly character (much like a Barbapapa)


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 21, 2010 at 10:38 pm in reply to: Parent expression using Layer control effect

    Hello Dan

    Is there any way to combine this delay expression with a springy expression?
    So that the target object follows the motion of the leader in a springy dynamic way?

    I tried to combine your springy expression i found with this delay expression, but I had no luck 🙁

    Also what would be great if the target object can still be animated individually.
    I am trying to build a dynamic character rig for a rubbery character. So when I animate the torso the head follows in a dynamic way, and the hair follows the head in a dynamic way. But of course the head needs also to animate individual to the body.

    regards
    Neil


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 21, 2010 at 6:06 pm in reply to: parenting functionality with expressions

    hey

    somehow, i do not get this to work anymore… strange

    try to do this simple thing:
    – create a leader layer
    – create a few following layers and apply the expression and said ” + value;” expression

    the layers do not stay on their initial position. they jump to some other position. This of course totally messes up my puppet rig.

    any ideas?

    cheers
    Neil


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • Neil Stubbings

    June 17, 2010 at 7:51 pm in reply to: parenting functionality with expressions

    wow, great thanks! works perfect!

    cheers
    neil


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • hmm, gives me an invalid numeric result (divide by zero) on line 5

    any ideas?


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

  • oh man thanks alot dan, your wizardness is amazing!


    Neil Stubbings
    Graphic Design | Motion Graphics
    https://www.stubbings.ch

Page 1 of 2

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