# Reference object snap: between

**URL:** <https://discourse.mcneel.com/t/reference-object-snap-between/96644>\
**Category:** Rhino for Windows\
**Created:** [February 18, 2020, 9:32am UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644 "2020-02-18T09:32:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/michal/32/717257_2.png) [@Michal](https://discourse.mcneel.com/u/Michal)\
**Post date:** [February 18, 2020, 9:32am UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644/1 "2020-02-18T09:32:57Z")

</div>

Hi,

There used to be a very useful reference object snap, an exact midpoint between two picked points. It is described in the documentation for Rhino 5, but I can’t find it in the newest Rhino. Is that functionality not available in Rhino 6, or am I just looking for it in a wrong place, where it used to be?

---

<div class="post-metadata">

**Author:** ![DanBayn](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/danbayn/32/477847_2.png) [@DanBayn](https://discourse.mcneel.com/u/DanBayn)\
**Post date:** [February 18, 2020, 9:41am UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644/2 "2020-02-18T09:41:41Z")

</div>

It moved in V6. Hold down Shift while hovering over the Osnaps.

---

<div class="post-metadata">

**Author:** ![Michal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/michal/32/717257_2.png) [@Michal](https://discourse.mcneel.com/u/Michal)\
**Post date:** [February 18, 2020, 9:53am UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644/3 "2020-02-18T09:53:59Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [February 18, 2020, 10:13am UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644/4 "2020-02-18T10:13:17Z")

</div>

Hi Michal - FWIW, You can also just type `between` to use this one-shot Osnap. For easy access, I have it mapped to the letter `b` in aliases.  
-wim

---

<div class="post-metadata">

**Author:** ![Michal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/michal/32/717257_2.png) [@Michal](https://discourse.mcneel.com/u/Michal)\
**Post date:** [March 5, 2020, 6:25pm UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644/5 "2020-03-05T18:25:33Z")

</div>

Hi Wim! Great tip for macros, many thanks!

---

<div class="post-metadata">

**Author:** ![kleerkoat](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kleerkoat/32/262111_2.png) [@kleerkoat](https://discourse.mcneel.com/u/kleerkoat)\
**Post date:** [March 6, 2020, 12:30pm UTC](https://discourse.mcneel.com/t/reference-object-snap-between/96644/6 "2020-03-06T12:30:02Z")

</div>

try this out, drag and drop this into rhino, it will add an alias called `OneShots`. put the alias in your MMB,  
 ![2020-03-06 07_28_12-Window](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/c/ec7750b2f9128f9609ebe832b1598e22b3e1771f.png)  
you have to have this toggled as well for it to show up.  
 ![2020-03-06 07_27_34-Window](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/a/2a40479be8b618e735397338396c7fc5fbf7a86b.png)  
now when you middle click you will have access to all those obscure snaps ready during a command. 🙂[OneShotsPopUp.rvb](https://discourse.mcneel.com/uploads/short-url/8q5vfq0r8lzkjAWVk7E1Q0L152q.rvb) (1.6 KB)

```
'Option Explicit
'Script written by Pascal

'Script version Wednesday, June 04, 2008

'Hi Ryan- I guess the problem is going to be that the rmb context menu is not
'available inside a command, which is when one-shots are available. But it is
'easy enough to make a script that will pop up a menu of them, if you are
'willing to activate the menu some other way, like with an alias or even a
'button.
'
'The attached script will register 'OneShots' as an alias for the
'pop-up; I would change this (in Options > Aliases) to something quick and dumb
'like 'mm' or something so you can get it with alias + spacebar really quickly.
'Drag and drop over a V4 window if you want to try it out. You could even put
'the alias on the middle mouse button macro, maybe, in Options > Mouse.

'Script version Wednesday, June 04, 2008
'Near, Midpoint, Center, Intersection, perpendicular, Tangent, Quad, Knot'

Rhino.AddStartupScript Rhino.LastLoadedScriptFile
Rhino.AddAlias "OneShots", "_NoEcho _-Runscript OneShotsPopup"

Sub OneShotsPopup()

	Dim aSnaps(14)
	
	aSnaps(0) = "Near"
	aSnaps(1) = "Center"
	aSnaps(2) = "Perpendicular"
	aSnaps(3) = "From"
	aSnaps(4) = "PerpendicularFrom"
	aSnaps(5) = "TangentFrom"
	aSnaps(6) = "AlongLine"
	aSnaps(7) = "Alongparallel"
	aSnaps(8) = "Between"
	aSnaps(9) = "OnCurve"
	aSnaps(10) = "OnSurface"
	aSnaps(11) = "OnPolysurface"
	aSnaps(12) = "PercentageSnap"
	aSnaps(13) = "testAddSmartPoint"
	aSnaps(14) = "testAddSmartPoint"

	Dim intSnap: intSnap = Rhino.PopupMenu(aSnaps)

	If isnull(intSnap) Or intSnap = -1 Then Exit Sub

	Dim sSnap: sSnap = aSnaps(intSnap)
	Rhino.SendKeystrokes sSnap

End Sub
```
