Inkscape.org
Tips, Tricks, and Tutorials Tip: Unlocking all Objects using Find/Replace
  1. #1
    COD COD @COD
    *

    Unlocking all locked objects?

    I was wondering if there was a way to unlock all locked objects in the document/layer and I started thinking about the find/replace in edit.

    Guess what? Yes there is! This works in v1.4 - no clue if it will work in other versions.

    Edit>Find/Replace
    Search In: Properties selected
    General: Include Hidden  and Include Locked selected
    Scope: All or layer selected (depending on what you want to find)
    Properties: Attribute Name selected
    Object Types: All types (or you can be more selective)

    In the find field enter "sodipodi:insensitive" without the quotes.

    Click find

    Now switch to Layers and Objects dialog

    Select the first object that is highlighted and unlock it. It will unlock all the found locked objects. 

    ====================================================

    Hidden Objects? 

    Edit>Find/Replace
    Search In: Properties selected
    General: Include Hidden  and Include Locked selected
    Scope: All or layer selected (depending on what you want to find)
    Properties: Style selected
    Object Types: All types (or you can be more selective)

    In the find field enter "display:none" without the quotes.

    Click find

    Now switch to Layers and Objects dialog

    Select the first object that is highlighted and make it visible it. It will make all the found objects visible. 

    ====================================================
    Find all Symbol objects?

    Edit>Find/Replace
    Search In: Properties selected
    General: Include Hidden  and Include Locked selected
    Scope: All or layer selected (depending on what you want to find)
    Properties: Attribute Name selected
    Object Types: All types (or you can be more selective)

    In the find field enter "xlink:href" without the quotes.

    Click find

    Unfortunately - if a layer itself is locked or hidden - these methods won't work. 

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Nice!

    (Moved to Tips section for easier discovery.)

  3. #3
    COD COD @COD

    Be nice to have a filter in the Layer and Objects dialog to find hidden and/or locked objects. 

    I have hidden objects before and spent decades looking for it again in the layers dialog. 

    I guess I need to add another feature request. 

  4. #4
    COD COD @COD

    https://gitlab.com/inkscape/inbox/-/issues/11451

     

  5. #5
    COD COD @COD

    And while the developers are adding that they can add this feature to locked layers:

     

    https://gitlab.com/inkscape/inbox/-/issues/10911

  6. #6
    COD COD @COD

    If anyone wants these features - I suggest giving it a thumbs up at gitlab issues. Otherwise (I have learned recently), that it basically gets ignored. If enough "votes" a developer "might" look at it. 

    Right under Version Info there are "thumbs up and down" icons. 

  7. #7
    inklinea inklinea @inklinea⛰️

    My selection plus extension has a page for xpath strings if you need complex selections.

    For a locked layer 

    //svg:g[contains(@sodipodi:insensitive,'true')]

    Not a fix, but if you are good at xpath may be useful.

  8. #8
    inklinea inklinea @inklinea⛰️

    I wrote an extension for my self a couple of years ago. 

    It was called InkNuke, I never finished it properly.

    The idea was, it could remove / add or replace attributes across objects.

    So for example it could remove a fill ( not set it to none, but 'pop' the attribute or style property )

    Or swap one attribute or style property for another.

    Or change or add attributes / properties ( and their values across objects - not just fill and stroke etc ) 

    Maybe I should add it to selection plus.

Inkscape Inkscape.org Inkscape Forum Tips, Tricks, and Tutorials Tip: Unlocking all Objects using Find/Replace