Joining Nodes in two objects?

Post questions on how to use or achieve an effect in Inkscape.
uncle808us
Posts: 6
Joined: Wed Jun 17, 2015 8:33 am

Joining Nodes in two objects?

Postby uncle808us » Fri Jun 19, 2015 8:55 am

Hi I just started using Inkscape so forgive my ignorance, I have googled and searched here also but found no answer to what I thought would be easy.
How can I combine two objects or lines or nodes? Not even sure what they are. Sorry for being so ignorant..
Screen Shot 2015-06-18 at 6.50.05 PM.jpg
Screen Shot 2015-06-18 at 6.50.05 PM.jpg (49.48 KiB) Viewed 2273 times

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Joining Nodes in two objects?

Postby Maestral » Fri Jun 19, 2015 10:23 am

It looks like you`ve tried to connect end nodes of red line with those from the green shape, but I can`t be sure to what avail?

There is a Path / Combine operation Ctrl/Cmd+K and there`s also Join nodes Shift+J as well, but Combine works with any given shapes while Join would work only on end-nodes.

Take a look at this page of Manual, and you might be closer to comfortable usage of Inkscape.
Full sails!
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

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

Re: Joining Nodes in two objects?

Postby brynn » Fri Jun 19, 2015 10:39 am

Well, it depends on what your ultimate goal is. If you want those 2 objects to become 1, you can use Path menu > Union. If you want 2 paths on top of each other, as well as their nodes on top of each other, you'll want to learn about Snapping http://tavmjong.free.fr/INKSCAPE/MANUAL ... pping.html. If you want 2 paths to become sub-paths of a compound path (which can happen no matter where the nodes and paths are) Path menu > Combine. If you want to have more than 2 paths meet at 1 node, and be connected to it, it can't be done.

However, there is a way to achieve this functionality, without actually having all the paths connected by 1 node. Drag the nodes that you want to be "connected" so that they snap together. (See link to the manual's info on Snapping above.) (Or use the node tool control bar X and Y fields, to set the nodes all on the same position.)

So now they look like they are all connected. To be able to move them around all together, you need to select all the nodes that are stacked up there. If you click on the top one, you only select the top one. To select them all, first select all the paths that are connected to those nodes, and then switch to the Node tool, if you aren't already using it. Drag a tiny selection box (using Node tool) around the stack of nodes. (Use the status bar to confirm you have them all selected.) Now you can drag them around by grabbing that top node, and all the rest come along with, dragging their paths behind.

And if none of that is exactly what you need, you can learn a lot more about node editing from the manual http://tavmjong.free.fr/INKSCAPE/MANUAL ... iting.html

(Sorry Maestral, you posted while I was typing.)

uncle808us
Posts: 6
Joined: Wed Jun 17, 2015 8:33 am

Re: Joining Nodes in two objects?

Postby uncle808us » Fri Jun 19, 2015 11:58 am

Thanks Guys I was trying for a wedge of cheese but I guess it isn't going to happen, I've so much to learn, Thanks for the help. I will continue reading the manual. Again thanks.

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

Re: Joining Nodes in two objects?

Postby brynn » Sat Jun 20, 2015 10:43 am

Wedge of cheese -- I see it now! So the top triangle will be a slightly different shade of yellow/orange, than the lower piece. You're almost there! I think what you need specifically, in the manual, is Snapping. I'll give you a brief setup, but be sure to look in the manual if you need more.

Go to File menu > Document Properites (or there's a button on the command bar) (http://tavmjong.free.fr/INKSCAPE/MANUAL ... atomy.html) > Snap tab. Note that this is just my personal suggestion for a good place to start. However, as you become more proficient with Inkscape, you may find a need to fine tune these settings. (Hhmm....thinking it might be nice to make a "quick start with snapping" tutorial....)

For "Snap to Objects", "Snap to Grid", and "Snap to Guide" set all for "Snap only when closer than" and set "Snap Distance" to around 20. I suggest to leave everything else alone, until you learn more.

Next, go to the canvas. Along the right side of the canvas is the Snap toolbar. Engage the button at the top to turn on snapping in general. For what you need engage "Snap nodes, paths and handles" button, and then "Snap cusp nodes" and "Snap smooth nodes". All others should be disengaged.

With that configuration, you'll be able to do 2 things. 1 - When you drag nodes with the Node tool, they will snap to other nodes. The snap will happen while you drag the node. When you get closer than approx 20 pixels (the option you set in Doc Prop), the node will sort of jump away from your control, and attach itself to the node you're snapping it to. It will be precisely at the same point on the canvas as the other node. At that moment, some text will flash to tell you what kind of element snapped and what kind of element was snapped to. In your case, it should be pretty clear, but the text announcement helps when it's a complex drawing with a lot of little things close together. Just release the mouse button when you see the text flash.

2 - When you are drawing with the Pen tool, you can place nodes precisely on top of other nodes, WHILE you are drawing it -- as long as the Pen pointer is closer than 20 pixels from the node, when you click to set the node. No need to later use the Node tool to adjust.

uncle808us
Posts: 6
Joined: Wed Jun 17, 2015 8:33 am

Re: Joining Nodes in two objects?

Postby uncle808us » Sat Jun 20, 2015 11:34 am

No what I was after was connecting (welding all nodes together ) so I went into Anime Studio Pro 11 turned on the auto weld feature and drew the object (vector) and in about a minute it was done one simple object. Here it is:
https://www.youtube.com/watch?v=oEzy7e5O5xc

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

Re: Joining Nodes in two objects?

Postby brynn » Sat Jun 20, 2015 12:33 pm

Well, all I can say is that these are 2 different programs, and they do things differently. If you had access to another program, that you already knew how to use, why did you try to do it with Inkscape in the first place?

For the record, I still think Snapping is what you are after, with Inkscape.

uncle808us
Posts: 6
Joined: Wed Jun 17, 2015 8:33 am

Re: Joining Nodes in two objects?

Postby uncle808us » Sat Jun 20, 2015 1:31 pm

Snapping is not what I was after( but I can see that it will come in handy in the future.) I'm trying out Inkscape to see how I like it for vector work. I did not know Anime Studio could do this as I have only been using it for about a month. Thanks you very much for your input. No offense meant so I hope there is none taken.
I do appreciate your help as a long time user of these forums. As I am just an ignorant new user. I have only been using Inkscape for a couple of days. But I like it very much. I am a long time Gimp user only paint app I use.
PS I do see the point of having two objects. I will be going thru you instructions above tomorrow. Thanks again.

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: Joining Nodes in two objects?

Postby Maestral » Sat Jun 20, 2015 4:04 pm

Bare in mind different treatment of vectors in AnimeStudio and Inkscape. For an example, import curved drawing from Inkscape to AS and you`ll see a few additional nodes, where a few might rise to a few hundreds for a bit more complex drawings. So, while linear drawings with no curvature are translated perfectly, these additional nodes will force you to either gain a better grasp of vectors or of drawing tools in AS ,)
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:


Return to “Help with using Inkscape”