# Create keyboard short cut or alias

**URL:** <https://discourse.mcneel.com/t/create-keyboard-short-cut-or-alias/39111>\
**Category:** Rhino for Windows\
**Created:** [November 26, 2016, 5:01pm UTC](https://discourse.mcneel.com/t/create-keyboard-short-cut-or-alias/39111 "2016-11-26T17:01:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddyf](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eddyf/32/758316_2.png) [@Eddyf](https://discourse.mcneel.com/u/Eddyf)\
**Post date:** [November 26, 2016, 5:01pm UTC](https://discourse.mcneel.com/t/create-keyboard-short-cut-or-alias/39111/1 "2016-11-26T17:01:55Z")

</div>

I would like to create a two different keyboard shorts or alias  
One would move a selected object center to world 0 and the other would  
move a selected object bottom to 0 cplane (for 3d printing). Do I just type the steps in a macro

\_AreaCentroid  
\_SelPt  
\_move  
from pt ??  
to w0,0.0

\_boundingbox how to you add options??  
\_Enter  
\_move  
\_pause  
0,0,0

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [November 26, 2016, 5:14pm UTC](https://discourse.mcneel.com/t/create-keyboard-short-cut-or-alias/39111/2 "2016-11-26T17:14:10Z")

</div>

Hi Eddy - for that operation you’ll need a script (that is, the macro would run `! _-Runscript` command to run the script, not just Rhino commands) , A macro can’t find the BB center and feed it to the Move command.- I’m pretty sure these have been posted here and if not, it’s easy enough to make one.

@Eddyf - I dug up an script that should help - this one will work like a command - save, then drag and drop the rvb file onto a Rhino window - that will add

BBToOrigin

as an alias to do what I think you want - if you set Project=Yes then the bottom of the BB is what gets centered. It’s old and may have a bug or three but I tihnk it bascially works.  
[BBToOrigin.rvb](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/8/7869e28a5079dd9d2a4cf4cd5fccac2260885d91.rvb) (1.5 KB)

-Pascal

---

<div class="post-metadata">

**Author:** ![Eddyf](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eddyf/32/758316_2.png) [@Eddyf](https://discourse.mcneel.com/u/Eddyf)\
**Post date:** [November 26, 2016, 5:18pm UTC](https://discourse.mcneel.com/t/create-keyboard-short-cut-or-alias/39111/3 "2016-11-26T17:18:04Z")

</div>

ok thanks  
I’ll look
