Script for moving elements to separate layers based on their appearance
Hello everybody!
I’m working a lot with architectural plans that were created in CAD programs and get delivered to me as PDFs with all the vector information in one flat layer. In order to work with them I have to tediously select all elements by stroke color, stroke width and fill color and move them to separate layers by hand. Since this can take some time I was looking for a script that could help me with that. I’ve found some scripts in this forum which came close but didn’t quite get there.
As a first step it would be helpful if I could select one element and the script selects all other elements with the same stroke color, stroke width and fill color and moves them to a new layer. As the next step it would be very useful if I can just open a file, run the script and all elements with the same appearance get separated in individual layers.
Since I have no skills in scripting I’d like to ask the community if anybody has heard of such a script or plugin or would know how to go about scripting something like that. Many thanks in advance!
