Forum Replies Created

Page 45 of 1081
  • It could be complicated, if you have to compensate for every level of comp nesting. However, I’m guessing that going up the heirarchy, there aren’t many instances where the nested comp layer doesn’t start at time = 0 in its parent comp. If you can identify those situations, it will simplify the code.

  • Something close to this maybe:

    p = toComp([0,0,0]);
    w = thisComp.width/2;
    h = thisComp.height/2;
    center = [w,h];
    maxD = Math.sqrt(w*w + h*h);
    d = length([p[0],p[1]],center);
    easeIn(d,0,maxD,100,0)
  • Dan Ebberts

    June 8, 2023 at 12:02 am in reply to: Eye-Blink Expression

    I have no explanation for that. Maybe someone else will chime in…

  • Dan Ebberts

    June 7, 2023 at 9:20 pm in reply to: Number of effects on a layer

    It’s in the Expression Language Reference section of the AE Help. It’s in the Property attributes and methods section (although it’s not very well marked–it’s actually in the propertyGroup writeup).

  • Dan Ebberts

    June 7, 2023 at 9:13 pm in reply to: Eye-Blink Expression

    I’m sorry, can you post a screen shot that shows what’s happening?

  • Dan Ebberts

    June 5, 2023 at 7:08 pm in reply to: soundkeys x asix

    Probably some variation of this, linked to the SoundKeys output:

    http://www.motionscript.com/design-guide/audio-trigger.html

    substituting an x position animation for the scale wobble. Something like this maybe:

    amp = 100;
    rampTime = .25;
    fallTime = .1;
    x = t < rampTime ? easeOut(t,0,rampTime,0,amp) : linear(t - rampTime,0,fallTime,amp,0);
    value + [x,0]

  • In that case, I would change it to > -1

  • Something like this:

    count = 0;
    for (i = 1; i <= index; i++){
    if (thisComp.layer(i).name.indexOf("Control Layer") == 0) count++;
    }
    count
  • I’m not sure what you mean by intensity, but you could convert RGB to HSL. This would give you the lightness channel, for example:

    c = colors.sampleImage(colorPicker, radius = [5, 5], postEffect = true, t = time);
    rgbToHsl[2]
  • Dan Ebberts

    June 2, 2023 at 9:20 pm in reply to: Eye-Blink Expression

    Yes, unfortunately. You might be able to simplify somewhat with a clever naming convention. For example, if you named your flash layers “Flash 1”, “Flash 2”, etc. and your control layers “Control 1”, “Control 2”, etc. then you could do something like this in the Flash expression so it would be the same for every layer:

    myNum = name.split(" ")[1];
    segStartTime = thisComp.layer("Control " + myNum).effect("Slider Control")("Slider");

    You could do a similar thing with the audio expression.

Page 45 of 1081

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