Inkscape.org
Beyond the Basics Toggle visible sub-layers - workflow, extension, script or feature request
  1. #1
    Grobe Grobe @Grobe

    I often find myself in a situation where I have a drawing consisting of a main layer. Then there is a layer2 above that have two or more sub-layers. The purpose of this is it to be when I have a main drawing with minor changes in details between versions.

    Currently, the work flow when I toggle (swap between visible layers) between two sub layers is to just hide the visible one and unhide the hidden one. This can be tedious when I need to swap visible layer frequently.

    This is a feature that would be a very nice addition for workflow: In the layer that contains the sub layers, there could be a Flag/bit that cause Inkscape to alter the behaviour so that only one sub layers are allowed to be visible at once. If any of the hidden sublayers are made visibe, then any layer already visible will become hidden.

    Thing is - if this is doable in other means, either by alter my workflow (ideas?) or it being possible to create a script that can cause the altering behaviour, no need for feature request.

    In practice: how about adding new tag on layer objects "inkscape:sublayersSwapBehaviour"="1" will cause this behaviour.

     

    Any ideas ?

  2. #2
    inklinea inklinea @inklinea⛰️
    *

    So to be able to cycle the visible child layer for any selected parent layer ? 

    For example if the parent layer has 3 children, then the immediate child layers would cycle 1 (2) (3), (1) 2 (3), (1) (2) 3. 

    Where the layers in brackets are hidden ? 

    I think a cycling shortcut would be good but in combination also with a `solo in sublayer` instead of `solo in all layers` ( current behaviour ) 

  3. #3
    Grobe Grobe @Grobe

    Yes something like the cycling as you describe looks to make a good workflow.

  4. #4
    inklinea inklinea @inklinea⛰️

    https://gitlab.com/inklinea/toggle-layers

     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Toggle visible sub-layers - workflow, extension, script or feature request