Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions DVD Logo Style Bouncing Layer Expression

  • DVD Logo Style Bouncing Layer Expression

    Posted by Mark Bellsmith on July 2, 2010 at 5:31 am

    I’m looking for an expression to do a super basic “dvd logo” style animation, where a layer floats around the screen forever, bouncing off the edge of the comp at a complimentary angle. This type of thing – https://www.youtube.com/watch?v=PIlV553Uig0&feature=fvw .

    I’m sure this is super easy for those in the know, but I couldn’t find one floating around online.

    Can any one give me a hand? Thanks in advance!!

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Shai Ezra replied 6 years, 9 months ago 10 Members · 18 Replies
  • 18 Replies
  • Kevin Camp

    July 2, 2010 at 10:06 pm

    you could try particle playground…

    you can define the logo layer in the layer map property, then keyframe the cannon emitter to produce a single particle and set gravity zero.

    if you add a rectangular mask to the solid that the effect is applied to, you can set that to be the boundary for the logo, and it should now bounce off of it.

    the tricky part will be preventing the logo from turning as it bounces. you could try adding a white solid, then setting that as the layer map for the persistent property. then set one of the channels (red,for example) to be used to control angle, with min and max settings of zero. the idea being that a non changing solid color should hopefully prevent the angle from changing….

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Mark Bellsmith

    July 3, 2010 at 4:16 am

    Wow – that worked 100%, right through the persistent property mapping! Thanks for the clear solution !!!!

  • Jesse Stormer

    June 21, 2016 at 4:36 am

    For anyone else who finds this — make sure your solid layer for ‘persistent property’ is LARGER than your comp. Those particles touch the edge and detect that there is no reference for rotation, they begin to rotate, but then snap back as they return to the center. Same with particles being emmitted from off-comp, they will enter comp with rotation.

  • Joseph Pandolfi

    June 29, 2018 at 2:40 am

    Could anyone help me out? I’ve followed everything that you’ve said except when I set the Wall option to the mask on the solid that I have particle playground on the logo fails to move. Whenever I turn off the boundary though the logo continues to move off of the page. Not sure where I am going wrong here.

  • Sam Hockaday

    February 15, 2019 at 2:29 pm

    It’s been awhile since this thread was posted, but in case anyone else runs into Joseph Pandolfi’s issue with the logo not moving, I found a strange solution. I’m not sure if there’s something wrong in my setup, but I found that the border mask needed to be re-sized based on my zoom level.

    So, if I was viewing/rendering the composition at 50%, the mask would need to be one size. If I render at 100%, I actually had to resize the mask so that it was quite a bit bigger than the composition and solid layer. The reason the logo wasn’t moving is that the Particle Playground effect was treating the mask as very small, and probably touching the logo layer on all sides, holding in place. I had to trial and error when resizing the layer mask, until the logo bounced off the composition edges correctly.

    Hope this helps someone else looking to do this effect! It works quite nicely once the workaround is in place.

  • John Birchman, dsce, cfot

    April 29, 2019 at 5:58 pm

    Hello:

    Can anyone help with setting the cannon emitter to produce a single particle?

    I can’t seem to figure this part out. Either I get no particles, or a get 0.01 particles per second.

    Everything else seems to be working.

    Thank you.

  • Filip Vandueren

    May 2, 2019 at 5:05 pm

    Unless you have other important reasons for a particlesystem,
    this expression on position of a layer will do the same trick

    hSpeed= 222;
    vSpeed= 200;

    margin= 100; // how far the anchorpoint of the layer has to stay from the edges of the comp.

    cw=thisComp.width - margin*2;
    ch=thisComp.height -margin*2;

    // calculate the layer moving at a constant speed
    x = value[0] - margin + time*hSpeed;
    y = value[1] - margin + time*vSpeed;

    // keep the layer in bounds
    x = x<0 ? -x : x;
    x%=2*cw;
    x = x>cw ? (2*cw)-x : x;

    y = y<0 ? -y : y;
    y%=2*ch;
    y = y>ch ? (2*ch)-y : y;

    [x,y]+[margin,margin]

  • Filip Vandueren

    May 2, 2019 at 5:08 pm

    if you see &lt, in an expression, that means it should be the “lesser than” symbol: “<”

  • Billy Joe

    May 21, 2019 at 6:52 pm

    I am having the same difficulty.
    Did you find a solution?
    Could you please explain it to me?
    Thanks!

  • Billy Joe

    May 21, 2019 at 7:37 pm

    [John Birchman, DSCE, CFOT] “Re: DVD Logo Style Bouncing Layer Expression
    by John Birchman, DSCE, CFOT
    on Apr 29, 2019 at 1:58:09 pm

    Hello:

    Can anyone help with setting the cannon emitter to produce a single particle?

    I can’t seem to figure this part out. Either I get no particles, or a get 0.01 particles per second.

    Everything else seems to be working.

    Thank you.”

    ———————————–

    I am having the same difficulty.
    Did you find a solution?
    Could you please explain it to me?
    Thanks!

Page 1 of 2

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