3 Replies Latest reply on May 19, 2017 3:13 AM by Mylenium

    Shapes affect other shapes

    dariusou

      Hi all,

       

      I'm trying to animate a bunch of boxes lined up in a line. I would like them to be "connected" in the sense that when I shift the corner points of one of them, the others follows as well. Is there a way to "join" them together? Also ideally the end points if the can be fixed and anchored at the sides that would result in this:
      Screen Shot 2017-05-19 at 5.07.45 PM.pngI figured I could do this manually but Im dealing with hundreds of boxes.

        • 1. Re: Shapes affect other shapes
          Mylenium Most Valuable Participant

          You can set it up using expressions and manipulating the scale, position, anchor point and shape size for parametric shape layer rectangles. Conversely, applying multiple linear wipes to suitably colored layers can be rigged to act accordingly.

           

          Mylenium

          • 2. Re: Shapes affect other shapes
            dariusou Level 1

            linear wipes are cool but my shapes acts on both sides so linear wipe wouldnt work for my case.
            Any ideas/tutorials for the expressions that might be useful? I'm quite new to expressions.

            • 3. Re: Shapes affect other shapes
              Mylenium Most Valuable Participant

              linear wipe wouldnt work for my case.

              Sure it does. Nothing stops you from applying as many as you need to the same layer. The rest is merely using a bunch of linear() interpolators to convert absolut pixel coordinates to the relavant wipe percentages and vice versa. Same for shape layers. All you ever need is figure out where the edges are and in case of rectangles that is simple enough. In fact you may not even need to make this super-fancy. It's just an illusion. Simple pick-whipping of some position data for the middle section might suffice toi cover up the left and right parts underneath.

               

              Mylenium