[solved] Duplicate object - goes next in z-order

Flesh out your ideas for new or improved Inkscape features before submitting a request.
User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

[solved] Duplicate object - goes next in z-order

Postby Grobe » Tue Oct 25, 2011 5:18 am

Hi.

If i have a huge number of partially overlapped objects, I often find myself in need to duplicate an object. This duplicated object may be one of thirty objects that partially overlaps. If the original object is eg. number 14, I have to hit the Shift+PgDown button like 15 times.

Summary: Any duplicated object get on the top on all other objects. Can I make Inkscape instead put any duplicated object on top, only over it's origin?

If not, that should be added to a feature request.


I hope my question make sense ;)
Last edited by Grobe on Wed Oct 26, 2011 12:31 am, edited 1 time in total.
:lol:

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Duplicate object - goes next in z-order

Postby druban » Tue Oct 25, 2011 1:47 pm

There is a way but I don't think it's the kind of solution you look for.
The duplicated object gets put in front of all the objects in its group.
So select the object to duplicate, then ctrl - G, ctrl - enter, ctrl -A, ctrl - D puts the object where you want it.
Your mind is what you think it is.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Duplicate object - goes next in z-order

Postby ~suv » Tue Oct 25, 2011 7:32 pm

What about 'stamping'? Pressing the space bar while starting to drag an object with the select tool drops the first copy at the same z-level as the original object, and further copies immediately above the first dropped copy (use snapping to position the dropped copies).

(Also works with selections of multiple objects).

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: Duplicate object - goes next in z-order

Postby Grobe » Wed Oct 26, 2011 12:24 am

Hi.

Thanks for reply.

I did try the two possible solutions. Unfortunately they both have it's drawbacks.

Suv's suggestion's disadvantage is that I have no control over how many duplicates that is created. First time I tried I had to delete about 20 pieces until I had only one left. Then I could Undo and have two similar on top of each other.

druban's solution does work, but I had to investigate some. I get it to work by doing the follow routine.
  1. Select tha object.
  2. Make a duplicate [Ctrl+D]
  3. Send the duplicate to bottom [End] (while it's still selected)
  4. While the bottom object (the duplicate) is still selected, also select original object [Shift+LMB]
  5. Group the objects [Ctrl+G]
  6. Ungroup [Ctrl+G]
Now, those two objects is located just next to each other in the Z-order.

[edit]
After some further testing I see I did a mistake when testing Suv's solution. I thaught I would KEEP space down. But when I hit space only once, there was created a copy with same Z-order as original object.
Also, I didn't actually need to drag the object (at some (at least) distance), as I first thaught. I could simply keep LMB down when hitting the Space button.

Nice solution, thanks :D
:lol:

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: [solved] Duplicate object - goes next in z-order

Postby Grobe » Wed Nov 02, 2011 12:58 am

Just to be precise, I add a timing diagram:
Attachments
InkscapeDuplicateMethodTimingDiagram.png
Duplicate object method
InkscapeDuplicateMethodTimingDiagram.png (7.94 KiB) Viewed 2859 times
:lol:

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: [solved] Duplicate object - goes next in z-order

Postby brynn » Thu Nov 03, 2011 5:51 am

Hhhm, I thought I had replied to this some time ago....hhmm.
But I didn't really have a solution. However this:
~suv wrote:What about 'stamping'? Pressing the space bar while starting to drag an object with the select tool drops the first copy at the same z-level as the original object, and further copies immediately above the first dropped copy (use snapping to position the dropped copies).

(Also works with selections of multiple objects).

is like a minor miracle! I did not know about this before, and I suspect it will quickly move into one of my favorite tricks :D


Return to “Inkscape Ideas”