Inkscape Community

Help Using Inkscape => Beyond the Basics => Topic started by: ksv82 on July 10, 2019, 09:27:13 PM

Title: How i can get list of all objects in document in python extension?
Post by: ksv82 on July 10, 2019, 09:27:13 PM
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?
Title: Re: How i can get list of all objects in document in python extension?
Post by: Moini on July 11, 2019, 09:39:47 AM
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).
Title: Re: How i can get list of all objects in document in python extension?
Post by: brynn on July 12, 2019, 12:40:01 AM
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/
Title: Re: How i can get list of all objects in document in python extension?
Post by: ksv82 on July 15, 2019, 01:29:37 AM
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
Title: Re: How i can get list of all objects in document in python extension?
Post by: brynn on July 15, 2019, 06:26:10 PM
I'm glad we could find what you needed!

You're welcome :)