Inkscape 0.91 featured a "select same" function.

To use:
1. Select the object with the fill colour you're after.
2. Right-click and choose Select Same > Fill Colour (alternatively Edit > Select Same > Fill Colour)

After that, you may have to ungorup the objects (ctrl+shift+g) to apply Path > Union to them.

-C


On Wed, Sep 23, 2015 at 11:26 AM, Götz Freytag <goetz.freytag@...155...> wrote:
Hello all,

I would like to find an automatic solution for the following workflow.

  • open/import file (eg. eps format)
    • select all paths of color x (ctr+f in xml editor for first hex-color string)
    • ctrl++ to union selection
    • repeat for all remaining colors
  • export to svg

or, if you will,

open or import file (eg. eps format);
for (all colors in drawing)
{
    select all paths of the current color;
    perform union on selected paths;
}
export drawing;

I suppose there should be a solution along the lines of

inkscape -f input.eps --verb=EditDeselect --select=allPathsOfSameColors --verb=SelectionUnion --export-simple-svg

However, I have no clue how to go about selecting all paths of the same color or how to iterate over all colors.

Any help or pointers would be very much appreciated.

Cheers
Götz

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Inkscape-user mailing list
Inkscape-user@...2249...sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user