Inkscape terminal change color

Post questions on how to use or achieve an effect in Inkscape.
MouNtant
Posts: 1
Joined: Thu Jul 21, 2016 8:35 pm

Inkscape terminal change color

Postby MouNtant » Thu Jul 21, 2016 8:37 pm

Hello,

I want to change to color of a object with Inkscape through the terminal. I've got this so far:

Code: Select all

inkscape test.svg --select=path5


But how do I change colors. I cannot figure it out been reading man pages for 2 hours now ;)

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Inkscape terminal change color

Postby Moini » Fri Jul 22, 2016 7:19 am

If you don't want to use a filter or (write, if not existing) an extension to change the color, try by using a tool like sed / awk / any search-and-replace tool for the command line - you could also write a small script in your favourite programming language. SVG is basically a text-based format, and any scriptable text editing tool will allow you to automate color replacements.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”