6 Replies Latest reply: May 2, 2012 4:26 PM by peter_wunder RSS

    Layers not in order when distributing horizontal centers

    peter_wunder

      I'm making a sprite sheet and need layers to be in order when distributing horizontal centers.

      When I hit the appropriate align button, layers are distributed correctly, but in a very strange order, almost seemingly random.

       

      Whan'ts going on? I'm very familiar with photoshop, so I know what I'm doing. This is odd behaviour.

       

      I order the layers botton to top, say, 1,2,3,4,5... and try it then. The result is random ordered distribution. So I tried reversing the layer order. Same result.

       

      Hope this can get fixed guys because manually distributing the layers on a 40 step sprite sheet would be a nightmare.

        • 1. Re: Layers not in order when distributing horizontal centers
          Trevor.Dennis MVP

          Peter, I have just tried it, and the distribution is in keeping with the layer order. Then I tried it again, but this time off-setting a random layer, and the distribution again stayed in layer order skipping the offset layer.  So just to be complete, I reversed the layers in the stack and tried once more, and the distribution followed the new layer order.

           

          Is there anything special about your layers?  Are they Smart objects or in different groups or anything like that?  I can't think what might be going on otherwise.

          • 2. Re: Layers not in order when distributing horizontal centers
            Trevor.Dennis MVP

            OK, I just made it break the layer order by adding an additional layer with different content, and that started somewhere in the middle of the page.  I tried placing the layers randomly on the screen, and the order defaulted to the least amount of movement to put them in their new location.

             

            Try this.

             

            Select all layers, and hit Align centres.  Then place the top layer on the far right position (assuming it is a horizontal distribution) and _then_ hitting Distribute horizontal centers.  That forced the distribution to follow the layre order for me.

            • 3. Re: Layers not in order when distributing horizontal centers
              Pete.Green Adobe Employee

              The alignment tools on my end seem to be working properly, at least for the document I'm imagining you to be working with. I think a video would help give us a more detailed idea of what you're describing

               

              The align and distribute commands do not reposition your layers to match layer order though (as far as I'm aware), not sure if that's what you're hoping for it to do. They align or distribute based off of the current positions of the layers selected.

               

              If you're still seeing the random behavior, could you record a video of it and post it here to the forums for us to see?

              You can use a free recording application such as Jing for this purpose, it works great.

               

              Thanks

              • 4. Re: Layers not in order when distributing horizontal centers
                peter_wunder Community Member

                Hi guys! Thank you so much for the answers! Really helping out. Here's some screenshots to show whats going on.

                 

                1. Layers ready to be distributed:

                 

                Screen shot 2012-05-02 at 3.20.48 PM.png

                Screen shot 2012-05-02 at 3.20.31 PM.png

                (all letters stacked up)

                 

                2. Pressing "Distribute Horizontal Centers

                 

                Screen shot 2012-05-02 at 3.23.14 PM.png\

                I send the top most layer to the end of the document, select all layers, and press Distribute Horizontal Centers

                 

                Bam:

                Screen shot 2012-05-02 at 3.24.02 PM.png

                 

                Any thoughts on what might be causing this?

                • 5. Re: Layers not in order when distributing horizontal centers
                  Pete.Green Adobe Employee

                  Nice screenshots.

                   

                  I'm thinking you'll find the trouble is from having all of them clumped in one lump before doing the distribute. As I mentioned before, the distribute commands do not take layer order into considersation, and distributes the layers that are selected based off of their position and center relative to the other objects it's moving with.

                   

                  So in your case, you'll want to position the letters in the order you want to see them (alphabetical order) prior to distribution of their centers (which is spacing them so that the spacing is even, not in order)

                   

                  Have a look at my screenshots of my document setup similar to yours using the clumped together method and distribution (first set of shots with results), and using the manual ordering of the position, then distributing. (second set of shots with results)

                   

                  distributeshot.jpg

                   

                  Hope this helps

                  • 6. Re: Layers not in order when distributing horizontal centers
                    peter_wunder Community Member

                    Absolutely brilliant! Worked, and now I can move forward with my project. Your time and help is worth gold. Thank you.