Bolts - Any way to create a macro-scipt ?

 From:  PaQ
1823.1 
Hello here,

I'm working on a new project where I'm planing to create a lot of 'painted' bolts like the image posted here ->



So actually I'm using the new 'on surface' feature, and it's already a great time saver. However, there are still many steps in the bold creation, and
I'm wondering if it's possible, somehow, to create a script that will create, an constant 0.1 m radius circle, with the 'on surface snapping' on.

Actually it requires 4 steps :

- activate the circle command,
- click on the the surface,
- move the mouse a little bit to catch the 'on surface' for the radius,
- entering the radius distance and validate (enter)

so if it's possible to merge this into one shortcut that would be a really cool time saver.
That's said I suppose the step 3 if a bit tricky to automate in a script ^^

By extension it would be really great to have a 'paste on surface' command in fact.
Actually there is a command in modo and a plugin in lightwave to do something like this, it's called 'mesh painting'. In one click you can paste an object according
to the target normal surface.

Here a little image:
http://www.evasion3d.com/gfx/meshpaint/pics/ui_clone_uv.jpg

it's about the uv, but whatever it illustrates the plug very well, every red square pyramid are created one by one by a single click over the white 'sphere'

EDITED: 3 Dec 2015 by PAQ