Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Align side by side horizontally - No gaps. - SOLVED
#1
Question 
Hello All,

I'm having the following difficulty:

I have several layers, they are all the same height but differ in width;
All are now aligned vertically;

I want to align them horizontally so that they are juxtaposed; as close together as possible without overlapping.

Ideally, the top layer should be on the left of all layers, followed by the layer below it on its right, and so on until the last layer is positioned at the other end of the horizontal (on the right).

With Inkscape there is the option:
"Move objects as little as possible so that their boundings boxes do not overlap."

I tried it with the Alignment Tool, but I never really understood this tool, and I didn't get that kind of alignment.

I thought the "Distribute targets evenly in the horizontal " option would do the job, but not even close.

How could I achieve this alignment optimally?

Thx!


Insisting I found a solution.

I had to sum the width of all the layers (I only used 6 layers in this experiment) and then increase the width of the canvas size to that value.
After that, "Distribute targets evenly in the horizontal" did the desired alignment.

But having to sum the width of a hundred layers is daunting.  Undecided


I was wrong, I noticed now that there was overlap between the layers after using the technique described above.  Blush


Solved!

The arrange-layers-0.2.py plugin does just what I need!

I know which is the widest layer among the approximately 100 layers.
I multiply the number of layers by that width and the result I use as the canvas width value.

So just apply the arrange-layers-0.2.py plugin and like magic everything lines up!!

Thx Ofnuts! (I'm pretty sure this is your plugin)
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply


Messages In This Thread
Align side by side horizontally - No gaps. - SOLVED - by Krikor - 09-03-2022, 03:45 AM

Forum Jump: