Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects moving layers randomly with expression?

  • moving layers randomly with expression?

    Posted by Laszlo Kovacs on December 22, 2006 at 12:30 pm

    Hi all!

    I’m working on a music video, where the singer is placed into different (fake) web sites. As the lyrics goes, the singer remains in the center, but one page kinda “morphs” into another one.
    I created those web pages in Photoshop, and I have 15-20 layers for the different elements on each page. At a certain time in the song, I’d like to blow the page by pushing its elements out, while pulling in others from random directions (only X,Y positions affected, no 3D). It’s actually not a blow, the page(s) should fall apart instead.

    I think this could be achieved with a lot keyframing, but something tells me that an expression could do the job perfectly, and save time for me.

    I hope I was clear enough, and someone could help me!

    All the best, and Merry Xmas!

    Mylenium replied 19 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Laszlo Kovacs

    December 22, 2006 at 12:34 pm

    Oops, should’ve posted this in the new expression forum?
    Sorry, I’ve just noticed this…

  • Mylenium

    December 22, 2006 at 6:08 pm

    [Laszlo Kovacs] “Oops, should’ve posted this in the new expression forum?”

    No problem. Your post will be relocated eventually. For the time, there is nothing wrong with posting here. Anyway, I’m not really sure what you are hoping to achieve. If, as you say, the pages are already designed and not random at all, there can be no such thing as using random animation. The only simplification I see is that you could automate the positional transitions by cross-checking the positions for each setup. You’d still have to define the timing somehow, be it just by using a slider to animate everything. You could achieve some further automation by checking for the in and outpoints. It might look something like:


    pos_a=thisComp.layer(“Website a Element X”).position.valueAtTime(outPoint);
    pos_b=thisComp.layer(“Website b Element Y”).position.valueAtTime(inPoint);

    move=linear(time,inPoint,OutPoint,pos_a,pos_b);

    [move]

    This does not figure in any layer space transforms to pin the elements in place on the website plates, so you will have to add toWorld() and toSurfacePoint() I haven’t wrapped my head around this entirely, so maybe someone else has some simpler ideas.

    Mylenium

    [Pour Myl

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