# Publish Grasshopper button to Rhino Toolbar

**URL:** <https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188>\
**Category:** Grasshopper\
**Created:** [May 15, 2020, 7:43am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188 "2020-05-15T07:43:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [May 15, 2020, 7:43am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/1 "2020-05-15T07:43:58Z")

</div>

Hello,

I know we can publish some grasshopper button to the Remote Control Panel in Rhino.  
Can we make them a button to Rhino toolbar too?

like the following buttons:  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/9/2/92ce6c9bb724b698dbf8b78fb44f64e3e5a3d013.png)

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [May 16, 2020, 6:42am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/2 "2020-05-16T06:42:26Z")

</div>

could someone help? 😢

---

<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:** [May 16, 2020, 6:49am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/3 "2020-05-16T06:49:38Z")

</div>

> [@raylee14](#):
>
> could someone help?

You should probably share more information about what it is, exactly, that you are trying to do, and why you want to do it a specific way.  
-wim

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [May 16, 2020, 7:21am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/4 "2020-05-16T07:21:06Z")

</div>

I would like to add the input components from grasshopper to Rhino toolbar  
just like the those buttons in the top of the following picture

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/5/d538ad586e538a808c9562a2bd61237c642b7a3b.png)

I know we can add custom button to the Rhino toolbar, with custom functions, but i am not sure how and can we do that for the grasshopper

---

<div class="post-metadata">

**Author:** ![Jun\_Wang](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jun_wang/32/759440_2.png) [@Jun\_Wang](https://discourse.mcneel.com/u/Jun_Wang)\
**Post date:** [May 16, 2020, 11:16am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/5 "2020-05-16T11:16:29Z")

</div>

don’t think that’s possible, remote control panel is the only to control grasshopper data inside Rhino. Is there a reason you have to put it on your toolbar? I think toolbar are specifically built to run one command/alias/script, rather then be interactive like what you would need with a slider for example.

Come to think of it, it might be possible if you know how to code. There is way through scripting to convert the current [scriptcontext](http://cu.t-ads.org/tips-script-context-in-gh-python/) from rhino to grasshopper, and if plugins like Metahopper can do operation on the canvas about components, you should be able to do it too through some extensive coding. I don’t personally know the full path of doing and that’s a lot of work for something that just does not sound very useful to be honest.

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [May 16, 2020, 8:55pm UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/6 "2020-05-16T20:55:47Z")

</div>

I think the space of remote control panel is limited so much, or can I create a button on the toolbar to run a python script?

---

<div class="post-metadata">

**Author:** ![Jun\_Wang](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/jun_wang/32/759440_2.png) [@Jun\_Wang](https://discourse.mcneel.com/u/Jun_Wang)\
**Post date:** [May 16, 2020, 9:11pm UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/7 "2020-05-16T21:11:03Z")

</div>

You can create custom toolbar to run python or rhinoscript, just search rhino custom toolbar.

---

<div class="post-metadata">

**Author:** ![nikolaos.argy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nikolaos.argy/32/161355_2.png) [@nikolaos.argy](https://discourse.mcneel.com/u/nikolaos.argy)\
**Post date:** [May 16, 2020, 9:47pm UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/8 "2020-05-16T21:47:26Z")

</div>

Have a look here:

> [@Open and run a GrassHopper Definition from Rhino \[Solved\]](https://discourse.mcneel.com/t/open-and-run-a-grasshopper-definition-from-rhino-solved/45652):
>
> I’m trying to open a GrassHopper definition via a menu button, and via an Alias/PythonScript, and in all cases it does open GrassHopper, but but not the “hard coded” GrassHopper definition file. Why not? Python script import Rhino import scriptcontext import rhinoscriptsyntax as rs def RunGHDef(): Grasshopper = Rhino.RhinoApp.GetPlugInObject("Grasshopper") if not Grasshopper: return False Grasshopper.DisableSolver() filePath = "D:\gh\my\_grasshopper\_file.gh" Grasshoppe…

My workflow:  
1)Make a command using python that opens and runs the GH script.  
see here how to make a command with python: [https://developer.rhino3d.com/guides/rhinopython/creating-rhino-commands-using-python/](https://developer.rhino3d.com/guides/rhinopython/creating-rhino-commands-using-python/)  
2) Make a button/macro that calls the command that you just made

---

<div class="post-metadata">

**Author:** ![Michael\_Pryor](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/michael_pryor/32/489117_2.png) [@Michael\_Pryor](https://discourse.mcneel.com/u/Michael_Pryor)\
**Post date:** [May 16, 2020, 10:35pm UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/9 "2020-05-16T22:35:03Z")

</div>

If you have access to Rhino 7 WIP, in that Grasshopper there are tools which let you make Grasshopper definitions into Rhino commands, probably then you can add that command to a button.

 ![Annotation 2020-05-16 153139](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/1/a15b85791ef06eea8c4e1aff4612734094827a0e.jpeg)  

[![](https://img.youtube.com/vi/UHXArFhJlAU/hqdefault.jpg "TestGrasshopperPlaya") ](https://www.youtube.com/watch?v=UHXArFhJlAU)

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [May 17, 2020, 7:49am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/10 "2020-05-17T07:49:33Z")

</div>

thanks. This is helpful ❤

---

<div class="post-metadata">

**Author:** ![raylee14](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/raylee14/32/161566_2.png) [@raylee14](https://discourse.mcneel.com/u/raylee14)\
**Post date:** [May 17, 2020, 7:49am UTC](https://discourse.mcneel.com/t/publish-grasshopper-button-to-rhino-toolbar/102188/11 "2020-05-17T07:49:55Z")

</div>

seems amazing. thank you so much 😀
