-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can be done with just inkscape? #27
Comments
Hello hoijui, |
Sorry! It was indeed badly written (I was tired). What I was looking for when I found this script, was something that could extract multiple objects into a single file, which inkscape can not do directly (though some BASH scripting makes it possible).
|
Thanks for clarifying. Indeed this script was written when Inkscape's '-i' option could handle only a single ID. It does support additional selection/export based on the (XML) element though, that's not (yet?) in Inkscape (see -x option) and selection through pattern In the IDs (see -p option), and selection through exclusion (you just select the objects you don't wanna export, the script exports all others). See examples: https://github.com/berteh/svg-objects-export#examples So you can choose to export all layers, or all groups, or all rectangles, or all objects that contain 'small' in their name string (not only their ID!) or all that at the same time... without knowing these objects IDs... and with no need to modify your batch line each time you add one such object in your SVG file. But maybe someday it will all be included in Inkscape, I don't know... And that's the beauty of opensource :-D Hope this helps. |
More examples in the wiki (some more advanced)... but your imagination is the limit: If you turn out using this script don't hesitate to share your favourite command line there! |
thanks @berteh ! :-) thank you! great interacting with you. :-) |
I think it can, if you have a look at
man inkscape
, and then look for--export-id
.I wanted to use this, because I though it would export all objects into a single file, which is what inkscape can't do, but neither does this script.
still.. thanks for making it available! :-)
The text was updated successfully, but these errors were encountered: