Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to make a boat “ride” on top of generated waves?

  • Dan Fredley

    May 11, 2012 at 4:25 pm

    Upload your project and I’ll take a look.

    Dan Fredley

  • Max Palmer

    May 11, 2012 at 4:37 pm

    Actually before I do that, what I just noticed is that the rotation actually works once the animation gets to a point where the waves move higher on the screen. I’ll play with this a bit more, now that I know that.

  • Max Palmer

    May 11, 2012 at 5:28 pm

    This is frustrating the heck out of me. I want to remove the comp height/width check from the code above, but I’m not sure which variables to remove or change. I keep running into errors.

  • Max Palmer

    May 11, 2012 at 6:25 pm

    Alright- I give up. Here’s my file, without all the dependencies.

    4125_max.aep.zip

    As you can see, the rotation effect doesn’t start working until the height of the wave comp’s alpha reaches around 180px.

  • Dan Fredley

    May 13, 2012 at 9:49 am

    It looks like you switched to using the turbulent displacement effect instead of the wave warp effect. After making a few tweaks to the expression it seems that the TD effect is too choppy and it wreaks havoc on the rotation as the expression uses visible pixels to determine the angle of the wave at the position of the boat.

    So, unfortunately I would recommend just animating the rotation by hand. It’s not a long animation so adding some rocking back and forth in sync with the waves wouldn’t be that difficult. I could come up with this convoluted way of using the wave warp to calculate the rotation for the first part then switch to calculating rotation from the TD layer, but it’s probably easier to just do by hand.

    The expression works a lot better on wave warp which typically has “smoother” waves making it easier for the expression to calculate a smooth angle transition from frame to frame. Hope that makes sense.

    Dan Fredley

  • Max Palmer

    May 14, 2012 at 12:57 pm

    Totally makes sense. I had completely forgotten I switched the wave effect, but not that I would have figured out the issue anyway.

    Thanks for the suggestion, and all the help!

Page 3 of 3

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