2 Replies Latest reply on Feb 24, 2016 3:33 AM by bashi-bazouk

    Swap layer depth

    bashi-bazouk Level 1

      Is it possible to change Layer depth/order via an expression or some method other than duplicating the layer?


      Eg: Animating a planet going around a Sun layer; I don't want to have to duplicate the Planet layer so that it can go behind/in front of the Sun layer



        • 1. Re: Swap layer depth
          Mylenium Most Valuable Participant

          Long and short: No. In theory you can use effects like Channel Combiner and by animating their settings switch mattes on and off (in contrast to conventional mattes), but this would require to pre-compose the planet with its orbit animation to obtain correct results, so it's not particularly intuitive. So for what it's worth - as long as it's really just a single layer duplicate and possibly a matte layer for the sun, it seems you are trying to make something that is actually simple quite complicated...



          • 2. Re: Swap layer depth
            bashi-bazouk Level 1

            Thanks for your reply.


            I figured out a little hack: You can change all the layers to 3D, then toggle the keyframes on the Z position from 0.0 to 0.1.


            Going into the Graph Editor and separating the X,Y,Z positions helps too


            Seems to work pretty well for this style of 2D animation (eg: South Park)