Sine Waves After Effects Tutorial

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • I love sine waves, and in Adobe After Effects there are a number of ways to do them, This tutorial I'll will cover 4 ways, 1 with a plugin, and 3 with expressions.
    Path sine wave expression
    gist.github.com/longlivemikey...
    text layer expression selector code
    S=(2*Math.PI/thisComp.duration)*30
    Math.sin(time*S+textIndex)*100
    If you need CC, Get Adobe Creative Cloud: cinemaspice.net/adobe-creative...
    to help support this channel.
    Don't forget to share this video. You never know who among your friends is a closet After Effects user. Thanks.
    Twitter
    / longlivemikey
    Facebook:
    / thecinemaspice

Komentáře • 58

  • @TheInfinites
    @TheInfinites Před 3 lety +11

    So for those of you who're getting an error for the 3rd example (sine waves on a path), first add 5 sliders. then rename them to 'Speed', 'Amp', ''Freq', 'Resolution', and 'Width'. also, make sure that the sliders are set to 0. set them to something like 0.01. once that's done, paste the code.

  • @ishahans6864
    @ishahans6864 Před 4 lety +2

    Hey Mickey, thanks for the tutorial. I'm a student and finding this super helpful. specially we've just been thrown into learning aftereffects on our own. Is there another tutorial for the last method where you've used the path?

  • @SuperWiiBros08
    @SuperWiiBros08 Před 4 lety

    been looking for this expression for the text, thank you

  • @matthewflynn1882
    @matthewflynn1882 Před 3 lety

    you're a hero, I have been looking for the exact solution at 18 minutes in for hours

  • @axxa5000
    @axxa5000 Před 4 měsíci

    Best sine wave tutorial ever. You’ve managed to help me solve two problems with one video, and taught me some cool tricks for future applications. Thanks 😊

  • @federicoleggio
    @federicoleggio Před 4 lety

    Thanks for sharing these Mickey!
    Not sure if this is too relevant (since i'm not an expression expert), but i wanted to add that we can also adjust the wavelength of the sine at 9:14
    So this: Math.sin(time*S+textIndex)*100
    becomes this: Math.sin(time*S+textIndex*3)*100 or Math.sin(time*S+textIndex*-2)*100 (basically multiplying textIndex)
    Hope it helps :)

  • @jamesdaly5523
    @jamesdaly5523 Před 2 lety

    YES! I've been trying to figure this out all day and this video just solved my problem. Thank you kind sir

  • @bendudding
    @bendudding Před 5 lety +1

    Awesome! Great stuff - this will come in handy.
    I also came across using the zig zag operator on a shape layer as a quick and dirty way to create a sin wave, but that method doesn't offer nearly as much control as using expressions.

    • @LongLiveMikey
      @LongLiveMikey  Před 5 lety

      I probably should have talked about zig zag too, forgot. oops :)

  • @JhoniMusic
    @JhoniMusic Před 3 měsíci

    Thank you so much! Insane tutorial, I was just making a new animation and I was stuck on something that included a changing wave, and you my friend just made my day!

  • @cr0ucherrr
    @cr0ucherrr Před 3 lety +1

    Great tutorial! Is there a way to make path line more random?
    I have tried A=effect("Amp")("Slider")/gaussRandom()
    but they just equally change position. How to make each position random?

  • @YotamRozin
    @YotamRozin Před 2 lety

    Thanks Mickey! Super useful and very clear.

  • @JillSpears
    @JillSpears Před 4 lety

    Thank you! This helped me so much!

  • @gaston.
    @gaston. Před 4 lety

    excellent tutorial Mikey! thank you

  • @yikoli8817
    @yikoli8817 Před 4 lety

    Hi thanks!!
    if i want to rotate the sine line (not just very straight to move or control the points or want it follow a path movement. do you have any suggestion? Thanksss

  • @ssc172
    @ssc172 Před 3 lety

    Hey man, very good tutorial! Keep it up :)

  • @anverHisham
    @anverHisham Před 4 lety

    I was looking for this feature in AE. Thanks a lot :-)

  • @henbayne
    @henbayne Před 3 lety

    ooh holy shit thank you so much, ive been looking around for something like this all day

  • @clarkanine
    @clarkanine Před 3 lety

    You sound like Patton Oswalt and it's adorable. Keep making great tutorials Remmy.

  • @minidreschi2
    @minidreschi2 Před rokem

    Thats a cool stuff thank you!
    For some sidenote tho,
    i added a Phase feature too to it, and also made the Speed goes with the time accordingly with whole numbers (so 1 sec is one Pii, so in sec2 we came back, i think its better this way)
    here is it:
    "
    S=effect("Speed")("Slider")*Math.PI;
    A=effect("Amp")("Slider");
    F=effect("Freq")("Slider")/3.6;
    R=effect("Resolution")("Slider");
    W=effect("Width")("Slider");
    Ph=effect("Phase")("Angle")*Math.PI/360
    P=[];
    for (i=0;i

  • @Workbenchtv
    @Workbenchtv Před 5 lety +13

    Who doesn't love a good sine wave? :)

  • @antero_m
    @antero_m Před rokem

    Mikey thank you for this, I think I'd like to see the circles as a "seamless wave". But I also realize, this is an old tutorial.

  • @todosko
    @todosko Před 4 lety

    thanks, very useful

  • @fatimanaqvi2976
    @fatimanaqvi2976 Před 5 lety +1

    Thanks for sharing..

  • @LarsRichterMedia
    @LarsRichterMedia Před 4 lety

    Thanks a ton!

  • @oldmanscribbe1
    @oldmanscribbe1 Před rokem

    For the sin wave applied to the line, how can you time it so it loops seamlessly?

  • @rizaljulizar4669
    @rizaljulizar4669 Před 11 měsíci

    I'm currently looking for a way to add path points using expressions, and in this video, I found the answer. But is it possible to adjust the position of each point?

  • @vlanwatcher6928
    @vlanwatcher6928 Před 3 lety +3

    Hello Mikey! Could you please help me to understand how to create the path with effects controls, I think I got lost where this path comes from, Thanks

    • @fortythreesunsets
      @fortythreesunsets Před 3 lety +1

      Hello, I hope this helps you.
      Once you have your line with the expression in Shape Layer 1 > Contents > Shape 1 > Path 1 > Path:
      1. Go to Effects & Presets > Expression Controls > Slider Control
      2. Drag the Slider Control to your Shape Layer (or double click on it to add it) 5 times
      3. With a Slider Control selected, press the Enter key to rename it. Rename them to Speed, Amp, Freq, Resolution and Width
      4. Change the values of the sliders to other than zero

  • @ChrrZ
    @ChrrZ Před 5 lety +1

    wow, really cool, thanks for this great tutorial

  • @stevenguder6768
    @stevenguder6768 Před 4 lety +3

    Hello! I'm relatively new to after effects and had a question for you. On the last example, how did you setup the line/path? I drew a line and tried copying the expression in but get an error saying "Expression disabled. Error at line 1 in property 'Path' ... effect named 'Speed' is missing or does not exist. It may have been renamed..." Thanks for the help!

    • @raghada7300
      @raghada7300 Před 4 lety

      same!

    • @raghada7300
      @raghada7300 Před 4 lety +1

      add slider control and change the name to speed

    • @EpicRSFail
      @EpicRSFail Před 3 lety

      @@raghada7300 Does not work

    • @snakedogman
      @snakedogman Před 3 lety +1

      Yes it's annoying he doesn't explain even how to set it up in the first place. Even if you create all the slider controls, what is the initial setup of the path/shape layer?

    • @NurgleShnurgle
      @NurgleShnurgle Před 3 lety

      @@snakedogman Not sure what he did but, I just went into the shape layer and deleted the actual shape. I then went to the Add: drop down menu and put a stroke on it.

  • @legocustom1000
    @legocustom1000 Před 4 lety +1

    Hi! When copy and pasting your last example, I'm told that createPath is an undefined function. Does anyone know how to solve this problem? Googling around hasn't helped much..

    • @Jocelyn.c.h.w
      @Jocelyn.c.h.w Před 3 lety

      I'm sure you already found the solution, but this is also for any others who run into this issue. I ran into the same issue and found that I typed CreatePath instead of createPath with a lowercase C. That solved it >_

  • @dudeimbusy
    @dudeimbusy Před 5 lety +1

    Nice

  • @darkgreyeurope
    @darkgreyeurope Před 3 lety

    Hi Mickey, I applied this to a mask path and that works very well... except... it puts the path at 0,0 so the top part falls outside the soilid. How can I lower the y coordinate?

    • @darkgreyeurope
      @darkgreyeurope Před 3 lety

      Added Y here: (R/F))*A+Y and a slider: Y=effect("Y-position")("Slider")*10

  • @nalinali71
    @nalinali71 Před 3 lety +2

    hello, for the path sine wave i've gotten an error about the speed, amp, frequency, etc. effects not being defined, do you know how to make sure they show up in effect controls?

    • @user-jq3xp7km3v
      @user-jq3xp7km3v Před 3 lety

      Same issue

    • @whitneybybee1159
      @whitneybybee1159 Před 3 lety +1

      You have to add 5 slider controls to the shape layer and name each of them: speed, amp, freq, resolution, and width. Once you made that you have to make sure the sliders aren't at zero otherwise the expression for the sine wave won't work

  • @k14arts
    @k14arts Před 4 lety +2

    Hi Mikey, awesome tutorial! I'm having some trouble creating the sine wave line (the third example). How do you go about creating it? I made a line path, added the control sliders and then applied the expression to the path property. But it gave me the following error: "Bad method arguments: createPath requires the points, inTangents, and outTangents to contain at least 1 point, and all be the same size."

    • @LongLiveMikey
      @LongLiveMikey  Před 4 lety +1

      Did you copy and paste the code or write it in? can you show me a screen shot of what you have?

    • @k14arts
      @k14arts Před 4 lety +1

      @@LongLiveMikey Sure thing. I copied and pasted it from the link you provided. Here is the screen shot: i.imgur.com/LkLztr5.png

    • @mnmlistik
      @mnmlistik Před 4 lety

      I have the exact same problem, would be glad for some help :)

    • @LongLiveMikey
      @LongLiveMikey  Před 4 lety +2

      @@k14arts Okay, you need to have the sliders not set to zero, that should fix it.

    • @LongLiveMikey
      @LongLiveMikey  Před 4 lety +1

      @@mnmlistik Okay, you need to have the sliders not set to zero, that should fix it.

  • @musicenthusiast2592
    @musicenthusiast2592 Před 8 měsíci

    I explored every possibility with initiating this expression could not manage to make it function. The final text that appeared was the disabled text saying that the createPath requires at least 1 point and the points to be all the same size. Anyone know what this means ?

  • @galinhoed
    @galinhoed Před 5 lety

    tks

  • @musicenthusiast2592
    @musicenthusiast2592 Před 8 měsíci

    Hate to rant but as I was testing the layer index the shapes were moving horizontally not vertically. I dont understand why... I guess you can say that I still am new to After effect.

  • @callumwest2228
    @callumwest2228 Před 3 lety +1

    Disappointed the set-up for the last sine wave was skipped. Unfortunately that doesn't help people trying to learn new techniques!

    • @TheKlausunderwin
      @TheKlausunderwin Před 3 lety +4

      Had to fiddle around a bit, but here’s my result:
      1. Draw your path / line
      2. Add the expression to the path of the line
      3. Add 5 slider controls to your layer (can be found under Effects)
      4. Go into the expression text and highlight „Slider“ (minus the brackets) in the first line
      5. With the text highlighted pickwhip from Path to your speed slider stop watch icon
      You have now assigned S to your first slider.
      Repeat the same with A, F, R and W.
      You might have to doublecheck the correct wording.
      It has to be exactly as in the video.