Created because there is apparent demand and I was unable to find a similar add-on.
Installation
Download the script and save it in your preferred location for scripts; this can be anywhere, but I recommend a dedicated folder.
Open Blender and in the User Preferences window, go to the ‘Addons’ tab and choose ‘Install from File…’.
Navigate to the folder you saved the script in, select it and click ‘Install from File’
The script is now installed and Blender should auto-filter the add-on list to show it.
Click the check box in the script’s entry to activate it.
Location
Once installed and activated, the add-on can be accessed via the Add > Mesh menu when in Object Mode.
This add-on can also be access with the hot-key SHIFT A.
Method
The add-on works by:
Adding a new Vertex object
or magic. Your choice.
Known Issues and Limitations
The single vertex is hidden beneath the origin point upon creation.
Version 0.2 fixes the Edit Mode problem.
Version 0.2.1 fixes problem where the operator would send the user to Object Mode if called when in Edit Mode.
Version 0.3 rewriting of code after pink vertex showed me a better method.
wouldnt it be enough to simply do CTRL - Left Click in Editmode ? For me this adds new verts which are even connected by edges to the last vertex selected, it even addes edges and faces if more verts were selected.
@ 1d_Inc and Scorpion81
The point is to add a new object that has only one vertex. The person who wanted this function was tired of wasting time by adding a plane object, tabbing into Edit Mode and then merging the vertices. They wanted to speed up the process, so I wrote this add-on.
@pink vertex
Wait, there’s a template? facepalm
Thank you.
edit: There were some errors in the code you provided, but I worked out a solution. Thank you for your help.
@Orinoco
You mean the problem where the origin point is located in the exact same position as the single vertex added? I didn’t. I also don’t see a need to, since the origin point would be easier to see than the single vertex with default theme settings.
Well, I’ve got it, but I don’t understand what it can be used for.
For example, I don’t feel the need to create that kind objects, so, maybe I missing something in my workflow?
I want to know what for people uses that kind of objects. Maybe for snapping? Or creating pointclouds with sripts like this?
I’ve seen people use a single vertex as a starting point when using the Skin Modifier for creating a base mesh. They’ll often add a plane and merge the vertices to get the single vertex. Jonathan Williamson and Kent Trammell from Blender Cookie both use this method. It’s not a function that everyone needs, I think it’s fairly niche, but it’s there for those who do.
I presume that the person who asked for this on Blender Institute’s Facebook page wanted it for a similar work flow.
No dank0, the Meta Androcto add-on make a vertex and go in Edit mode.
I prefer the Richard W. add-on to make vertex everywhere on the object space to make several “favoris” points: faster!
Thks a lot for your job, Man!
Bye bye
Spirou4D
I solved the problem by removing the rotation, location and alignment information entirely; using operator=None instead of operator=self. This seems to have worked perfectly.
I knew there were templates, I just didn’t know there was one for the Add > Mesh menu and I didn’t even think to check (I just dove straight into coding).