Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle and layer order

  • Wiggle and layer order

    Posted by Alex Dinnin on February 16, 2009 at 6:14 pm

    Could someone help me out please ???

    I have applied the following expression to the position on about 12 layers.

    x=wiggle (.8,250) [0];
    y=wiggle (.6. 205) [1];
    {x,y]

    It works a treat, randomly moving the layers about..

    HOWEVER… whenever I change the layer order.. the animation completley changes..

    is this expression controlled by layer order ??

    It’s not the end of the world.. just a little bit irritating..

    anyone know of a fix ???

    regards

    Alex

    Alex Dinnin replied 17 years, 5 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    February 16, 2009 at 9:59 pm

    If you like a particular wiggle, you can just add a seedRandom() call with the current layer number minus 1. For example, if you like the layer’s wiggle as layer 1, use this:

    seedRandom(0);
    x=wiggle (.8,250) [0];
    y=wiggle (.6, 205) [1];
    [x,y]

    Dan

  • Alex Dinnin

    February 17, 2009 at 9:50 am

    Hi Dan,

    OK.. I added your expression and AE didn’t like it at all, I put in the layer number randomseed (7);

    but it didn’t like it, then tried pickwhipping the whole layer, but still no.

    I tried a it with just random, which the expression was happy.. it’s just didn’t do anything.. when I moved the layer, they still changed position.

    any ideas ??

    thanks for your continued help

    Alex

  • Dan Ebberts

    February 17, 2009 at 2:29 pm

    So if you copy and paste the expression from my post into a postion expression it generates an error? What’s the error message.

    By the way, I don’t know if this is the problem or not, but it’s seedRandom(), not seedrandom().

    Dan

  • Alex Dinnin

    February 18, 2009 at 3:53 pm

    Hi Dan,

    Sorry it must have been finger trouble.. tried it again today and it works fine..

    I still don’t really understand how it works..

    but thanks anyway

    regards

    Alex

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