[SOLVED] Two objects under and over each other

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

[SOLVED] Two objects under and over each other

Postby Grobe » Mon Jun 14, 2010 6:32 am

Hi.

I have two similar objects, that is overlapping on two places. Call it obj1 and obj2.

As it is now, obj1 is in layer1 and obj2 is in layer2. Dependent on how I organize the layers, either obj1 or obj2 will be on top on both overlapping places.

Is it possible to make it so that obj1 comes over obj2 in one overlap area while obj2 is over obj1 on the other overlap area?

overUnder.svg
Sample file. Two objects overlaps on two places
(3.02 KiB) Downloaded 189 times
Last edited by Grobe on Wed Aug 11, 2010 4:53 am, edited 1 time in total.
:lol:

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Two objects under and over each other

Postby microUgly » Mon Jun 14, 2010 8:15 am

No, that's not possible. You have to split one of your objects into two pieces and put on piece above and one below. So you'll have obj1a, obj2, obj1b.

vwanweb
Posts: 169
Joined: Sun Jun 06, 2010 1:48 pm

Re: Two objects under and over each other

Postby vwanweb » Mon Jun 14, 2010 8:25 am

try this..
1. Ctrl+C the Red (top) object, we'll paste it later

2. Select Both objects and use Ctrl+- (Path Difference)
this will leave the bottom object with openings.

3. Use the Edit Path by Nodes Tool (F2) and collapse one
of the openings. Easiest way is to click on the segments
and use the 5th icon of the Tool Controls Bar 'Delete Segment
between two nodes" (bar above the canvas).

4. Select two of the end nodes and Shift+J (Join selected end Nodes)
repeat this for the adjacent end paths
Now use Ctrl+Alt+V paste in place done.

I've attached a file that shows the steps on canvas... You may want to have a look at
the Knot effect (Path >Path Effect Editor >Knot[pull down menu]) closed overlapping path though
http://tavmjong.free.fr/INKSCAPE/MANUAL ... -Knot.html
Attachments
OverUnder1.svg
(13.44 KiB) Downloaded 174 times

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

Re: Two objects under and over each other

Postby Grobe » Wed Aug 11, 2010 4:44 am

vwanweb: Thank you very much for a great explanation :D

I've being gone this summer, so I haven't had time to test your explanation before now.

Only issue I encountered was when pasting the first object, the object wasn't possible to paste (have pasted something else afterwards). So I opened the same file in a new instance of Inkscape and copied from there. So far all well.
But when pasting the object, I experienced that the object placement wasn't ideal, so I have to moved it to fit.

It's just a small issue, and as long as the stroke is wide, there is no need for very accuracy placement. Maybee I shall improve this by using two layers and having each objects in it's own layer. I think that's the way to do it so the object doesn't move :D
:lol:

vwanweb
Posts: 169
Joined: Sun Jun 06, 2010 1:48 pm

Re: [SOLVED] Two objects under and over each other

Postby vwanweb » Thu Aug 12, 2010 7:55 am

>Edit >Paste in Place (Shift+Alt+V) will place the object(s) directly to its original x/y coordinates from where it was Cut (>Edit >Cut, Ctrl+X) or Copied (>Edit >Copy (Ctrl+C) from.

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

Re: [SOLVED] Two objects under and over each other

Postby Grobe » Thu Aug 12, 2010 8:16 am

vwanweb wrote:>Edit >Paste in Place (Shift+Alt+V) will place the object(s) directly to its original x/y coordinates from where it was Cut (>Edit >Cut, Ctrl+X) or Copied (>Edit >Copy (Ctrl+C) from.
Ok, thanks :)

Exept from the latest version I use (Inkscape 0.47+devel r9596) use Ctrl+Alt+V :geek:
:lol:


Return to “Help with using Inkscape”