After Effects Ball Bounce Squash & Stretch with Linear Expression

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • In this video I cover a setup I rigged in Adobe After Effects to control squash and stretch on a bouncing ball without plug-ins, and no puppet pins.
    Just good clean code using the super-useful and versatile linear() function.
    Here's the code from the video:
    ----
    Basic Format of Linear Expression:
    linear(input, inputLow, inputHigh, outputLow, outputHigh);
    -----
    Code used in Video:
    t=transform.yPosition;
    inLow=thisComp.layer("Scale_Controls").effect("y_limit_lower")("Slider");
    inHigh=thisComp.layer("Scale_Controls").effect("y_limit_upper")("Slider");
    outLowX=thisComp.layer("Scale_Controls").effect("scaleX_limit_lower")("Slider");
    outHighX=thisComp.layer("Scale_Controls").effect("scaleX_limit_upper")("Slider");
    outLowY=thisComp.layer("Scale_Controls").effect("scaleY_limit_lower")("Slider");
    outHighY=thisComp.layer("Scale_Controls").effect("scaleY_limit_upper")("Slider");
    sx=linear(t,inLow, inHigh, outLowX, outHighX);
    sy=linear(t,inLow, inHigh, outLowY, outHighY);
    [sx,sy]; ----
    Download Project Templates and Other Useful Resources:
    aetechdesk.gum...

ความคิดเห็น •