Hiding/showing layers via command line?
Hi,
Is there any way to hide and show layers in a Inkscape document with command line arguments before saving?
I have an image that has buttons for a webpage, and on different layers there are the normal, selected and rollover versions of the buttons. I have a nice script to automatically output the buttons with command line options, but right now I have to go into the GUI, select the different layers, and run my script. It's not that much work, but I thought it would be neato if I could do all this from the command line.
thank you, sness.
On Tue, Feb 27, 2007 at 11:19:52PM -0800, sness wrote:
Hi,
Is there any way to hide and show layers in a Inkscape document with command line arguments before saving?
I have an image that has buttons for a webpage, and on different layers there are the normal, selected and rollover versions of the buttons. I have a nice script to automatically output the buttons with command line options, but right now I have to go into the GUI, select the different layers, and run my script. It's not that much work, but I thought it would be neato if I could do all this from the command line.
Presently there are no layer oriented options from the commandline interface.
However, layers are implemented as 'groups' (<g>), and I believe each group is assigned an id. There is a --export-id=ID option which I would imagine ought to allow some level of control over what's exported. No idea if that'll suit your needs, but I'd suggest experimenting with that as a start. You can use the XML editor to figure out the id's of layers/groups. You may also need to use the --export-id-only option and perhaps some other options as well.
Bryce
participants (2)
-
Bryce Harrington
-
sness