Inkscape.org
Beyond the Basics Is there any command to count the number of objects?
  1. #1
    ian ian @Ianp5a

    My drawing has many cloned objects. These clones are grouped and cloned again to make a complex pattern. I am trying to keep the file size small and I want to keep track of how many paths, cloned or not I have in the drawing. Is there any way display or count the number of objects. Including ones inside nested groups?

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Select-same> object type, view count in status bar?

  3. #3
    ian ian @Ianp5a
    *

    Thanks but no luck. If its selecting paths it doesn't select any cloned paths. If its selecting clones, a clone of a group of paths counts as 1 and not the number of cloned paths.

    The paisley pattern has thousands of tiny details copied many times.

    A
  4. #4
    inklinea inklinea @inklinea⛰️

    If you go to the bottom of the find panel, you can unselect all objects, and chose the types of objects you want then click find.

  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    "Find" seems to ignore objects in cloned groups as well. :-/

     

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    It is possible to search for #g to select all cloned groups, then unkink them, then search for all objects.

    Any way you cut it, it will be a lot of objects.

  7. #7
    inklinea inklinea @inklinea⛰️

    I  had a think about this. It's more complex than I thought.

    Don't forget that often clones can sometimes be made from clones themselves, and those clones could could contain groups which could also contain clones lol.

    You would have to follow all the xlink:href, and find resolve them :)

     

  8. #8
    ian ian @Ianp5a
    *

    search for #g didnt find anything.
    I started looking at analysing a PDF export to see if that was easier. But that was another long rabbit hole to go down. So I'll give up.

    Thanks all for your help.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Is there any command to count the number of objects?