jespino / inkscape-export-layers

MIT License
40 stars 19 forks source link

Sublayers exports into empty images #5

Open CurlyBraceTT opened 7 years ago

CurlyBraceTT commented 7 years ago

Subj. To create a sublayer you could by drag & dropping one layer on ahother.

dmitry-t commented 6 years ago

If you have a superlayer without an [export] prefix, it must not be exported, right? So its sublayers must not too. If you have a superlayer with an [export] prefix, and a sublayer with an [export] prefix, then there is a dilemma: only one marked layer is exported at once while all other layers except [fixed] are hidden, so either the superlayer or sublayer is hidden. Thus you never get sublayers exported.

You may mark the superlayer as [fixed], and sublayers as [export], but the superlayer contents will always be exported (but it will be fine if the superlayer has no contents except sublayers).

Perhaps you have ideas how the issue should be solved?

dmitry-t commented 2 years ago

There's idea to process only high level layers leaving sub-layers untouched in the same way as groups. Since the plugin could not be used for sub-layer scenarios, the feature will not harm any plugin user. Will implement it soon.