Is there anyway to fake "save selection"?

Asked by Patrick

I've seen this question, https://answers.launchpad.net/inkscape/+question/46784 , but it turned out that the OP had a different intent that I do.

I often find myself selecting a bunch of objects ( either manually or by find) and performing some action on those objects (ie change color or stroke). Each of these objects may be inside of a group or even on different layers, so I can't group them all together. Is there anyway for me to select a bunch of objects and save that selection as something. Then all I'd have to do is select that one object or the group name, to select them all.

An example usage from my daily workflow.

I end up creating sprite sheets, where each cell is the same size, but the actual content is smaller than the cell (imagine a circle inside the cell.) So what I end up doing, is creating a bunch of rectangles of the cell size and position the content in them correctly. The reason I do this is so that when I export each cell, I can select the rectangle and I export the same size cell. Now, the problem is that I actually want transparent backgrounds, instead of whatever the rectangle fill color is. So I select all the rectangles, set their fill and stroke to (none), batch export, then I have to go back and set all those rectangles to a color that I can see (so I can select it later).

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brynn (brynn4inks-deactivatedaccount) said :
#1

I don't know of any way to do that. But I do know there have been several new feature request/bug reports (over a few years), for a way to re-select the last selection, and similar things. Of course, there's no way to know (with much certainty) when such a feature will actually be created.

For now though, couldn't you put all the unstroked, unfilled rectangular cells in 1 layer?? That would make it easier to reselect them later.

Revision history for this message
Patrick (patrwck) said :
#2

The problem is that I actually have each one grouped with the contents of it's cell. I might be able to break those groups though.

Revision history for this message
su_v (suv-lp) said :
#3

A workaround could be to edit the id's of the various objects (add e.g. tags as substrings), and then recreate a selection set via 'Edit > Find' (which does search for substrings in the corresponding attribute values (e.g. id or style)):
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Select.html#Select-Find>

The feature request is tracked in
<https://bugs.launchpad.net/inkscape/+bug/170286>

The forked project Ponyscape implemented a feature (Tags) which allowed to keep lists of objects based on assigned tags, and easy reselection of tagged objects across groups. Currently there is in-going work in a branch of Inkscape trunk to backport this and other features from the (now abandoned) ponyscape fork to inkscape (trunk):
<https://code.launchpad.net/~inkscapebrony/inkscape/inkscape>

Can you help with this problem?

Provide an answer of your own, or ask Patrick for more information if necessary.

To post a message you must log in.