[solved] Change order of colors in pallete created from SVG

Post questions on how to use or achieve an effect in Inkscape.
Guest

[solved] Change order of colors in pallete created from SVG

Postby Guest » Wed Sep 17, 2008 6:58 am

I have put ~40 rectangles in one row, each one with different fill color. Then I saved it as .gpl file in ~/.inkscape/palettes, here you can see what I've got after restarting Inkscape:

Image

The top row shows color palete in svg file before export, in the bottom you can see already exported pallete. The question is: why Inkscape has changed order of colors after exporting pallete to .gpl and how to prevent it?

jbjones
Posts: 14
Joined: Fri Sep 12, 2008 7:33 am

Re: Change order of colors in pallete created from SVG file

Postby jbjones » Wed Sep 17, 2008 7:18 am

my guess would be its doing it on z-order not position, if you open the xml editor and select the top one then move down i expect you'll find the selection jumps about in the order your seeing on the imported. Cant think of the easiest way to fix it right now.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Change order of colors in pallete created from SVG file

Postby sas » Wed Sep 17, 2008 7:31 am

If z-order is the problem, Rob Antonishen's restack extension should be able to fix it. It's included in recent dev builds (Effects -> Arrange -> Restack).

Guest

Re: Change order of colors in pallete created from SVG file

Postby Guest » Wed Sep 17, 2008 7:32 am

I see now - it goes from the top to the bottom of the xml tree, not from the top to the bottom of the screen. So the order of exported palette purely depends on the creation time of given rectangle, not its align on the screen. I would have to cut each rectangle and paste it again to reorder xml tree. Is there any faster way to do this?

Guest

Re: Change order of colors in pallete created from SVG file

Postby Guest » Wed Sep 17, 2008 7:38 am

sas wrote:If z-order is the problem, Rob Antonishen's restack extension should be able to fix it. It's included in recent dev builds (Effects -> Arrange -> Restack).


Thanks sas, that solves the problem.


Return to “Help with using Inkscape”