Author Topic: How i can get list of all objects in document in python extension?  (Read 350 times)

July 10, 2019, 09:27:13 PM
Read 350 times

ksv82

  • Sr. Newbie

  • Offline
  • **

  • 2
I want to find all the objects that the line crosses. But I do not want to select all the objects on the page. Maybe there is some way to get a list of objects without selecting?
« Last Edit: July 11, 2019, 12:30:42 AM by ksv82 »
  • 0.92
  • win7

July 11, 2019, 09:39:47 AM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Object > Objects

Or use Alt+Left Mouse Drag to touch select objects. (i.e. hold the mouse button and the Alt key down and draw a line to select every object that line touches).

July 12, 2019, 12:40:01 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
If the objects have anything in common, besides touching a particular path, you could use Edit menu > Select Same, or Edit menu > Find.

If you'd like to share the file, it might help us find a solution.

I think there's an extension that will write all the objects in the file, in some kind of text file.  But not one that can identify all the objects which touch a particular path or object.  At least not that I know of.

Edit
This isn't the one I was thinking of, but possibly could help?  https://github.com/larscwallin/ExtractElements

This is the one I was thinking of:  https://github.com/tbekolay/csv_output or http://www.bekolay.org/
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 15, 2019, 01:29:37 AM
Reply #3

ksv82

  • Sr. Newbie

  • Offline
  • **

  • 2
brynn, thank you very match!!
This extention is exactly what I need!
It contains a walk through the layers, through the objects, getting the points of the paths. All I need to solve the problem.
https://github.com/tbekolay/csv_output
« Last Edit: July 15, 2019, 04:45:18 AM by ksv82 »
  • 0.92
  • win7

July 15, 2019, 06:26:10 PM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I'm glad we could find what you needed!

You're welcome :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann