Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Procedural animations over an array of lines

  • Procedural animations over an array of lines

    Posted by David Richards on February 14, 2019 at 11:05 am

    Hello all,

    I’ve referenced this community a lot, but this is my first time posting. Thanks for all the useful knowledge I’ve accessed so far, and thanks in advance for any advice you might have in reference to this post.

    I am creating an array of lines that need to be able to animate in a number of ways:
    * The lines need to become progressively more wiggly, and I need to be able to control this ‘wigglyness’ (the wiggle is static, not affecting the path over time)
    * I need to be able to be able to adjust the stroke width of the lines in a similar way (and have control over the curve of the increase in line thickness from line to line)
    * I need to be able to animate the x position of the lines so as to give the impression of a parallax, the most wiggly off in the distance, and the flatter lines nearer, with the feeling as if we are in a train passing this landscape (if the wiggle path effect passed through the line on the x axis, I could just animate that, but the spatial and temporal phase parameters don’t produce the desired effect)
    * I also need to be able to animate the y position of the lines.

    I’ve created some of this already, but it would be great to work out how I can create a composition with a few expression control sliders to control all the elements I need to. I’ve attached some images of the kind of things I’m trying to do.

    I’ve been affecting the wigglyness using this expression:

    thisComp.layer(index+1).content("Wiggle Paths 1").size*thisComp.layer("WiggleParameters").effect("Size")("Slider")

    To handle the distribution of the lines on the y axis, and the parallax, I created a massive precomp and have been using this expression for the lines’ position:

    ofstVal = thisComp.layer("Line Position and Paralax").effect("Y offset")("Slider") * index; // y offset value
    ofstVal2 = thisComp.layer("Line Position and Paralax").effect("Paralax")("Slider") * index/thisComp.layer("Line Position and Paralax").effect("Paralax ratio")("Slider"); // x offset value
    sPosition = thisComp.layer("Line Position and Paralax").position; // key layer position

    x = sPosition [0]+ ofstVal2;
    y = sPosition [1]+ ofstVal;

    [x, y]

    I have come up against some problems- in order to be able to have the parallax work at at the speed required, and for the duration the video needs to be, I need to make the precomp gigantic, with very long lines moving across the x axis. As the lines are so long, ‘wiggle paths’ has a weaker effect on the lines and the size of the precomp makes everything unwieldy. Is there a way around this? I was wondering if there were a way to either have the ‘wiggle’ pass through the line on the x axis, meaning I could use lines the width of the composition, if I could loop the wiggle paths evolution over time, or if somehow I could create a kind of conveyer-belt (like a flattened cylinder) to try and loop the lines?

    Perhaps I am going about all of this the wrong way! Any advice or assistance anyone can provide would be gratefully received. If you need any more info from me in order to help, let me know!

    Thank you,

    David

    Michael Szalapski replied 7 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • David Richards

    February 19, 2019 at 2:28 pm

    Okay, I thought I’d post a workaround that I have discovered, in case anyone has had similar issues.

    In order to get around the fact that the ‘Wiggle Paths’ effect has a diminishing effect over the length of the line, I have worked out a way of repeating the line so as to create a very long wiggly line over which the effect is just as strong as if it were a short line.

    I applied the Wiggle Path effect to my line as normal. In the drop down ‘Add’ menu within the shape layer, I then added a ‘Repeater’ and discovered I could create as many versions of this wiggled line as I liked. Fiddling around with the parameters inside the repeater, I could make each repeated line have a scale of (-100%,100%) of the previous line, and adjust the position, so that they formed an unbroken wiggly line (effectively looping the wiggle). This means I avoided the necessity of having a gigantic precomp in order to create the parallax effect over my array of lines. I hope this might help someone else along the way.

    David

  • Michael Szalapski

    February 19, 2019 at 7:38 pm

    That’s cool. Thanks for sharing.

    – The Great Szalam
    (The \’Great\’ stands for \’Not So Great, in fact, Extremely Humble\’)

    No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

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