Skip to content

How to assign layers on separate pages using Simple Inkscape Scripting? #105

Answered by spakin
MarySofy asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to make each layer on separate pages ? Or perhaps just to save the shapes directly into a page, instead to a layer?

Yes, but first let me explain the concept underlying layers and pages. That should make the coding step more understandable.

Both layers and pages are Inkscape-specific concepts; they don't exist in plain SVG. A layer is implemented as an SVG group. Just like an ordinary group, its size is determined by its contents. The only difference between a layer and a group is that a layer contains a couple Inkscape-specific attributes: inkscape:groupmode to indicate that the group should be interpreted as a layer and inkscape:label to specify the layer's name. A page…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarySofy
Comment options

Answer selected by MarySofy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants