AMG
January 20, 2024, 5:08pm
1
Hi,
I was wondering if there are any guides on how to build and compile a simple “Hello World” plug-in from a .rhproj with the ScriptEditor.
When I publish the following project I am unable to load the HelloWorld.rhp and execute the command CMDHelloWorld.
Gijs
(Gijs de Zwart)
January 20, 2024, 5:32pm
2
Hi @AMG did you see this video by @eirannejad ?
AMG
January 20, 2024, 5:37pm
3
Hi, yes I have seen it. Not sure what I am missing.
Hi @AMG , what happens if you drag & drop the *.yak file instead of the *.rhp file ?
_
c.
Gijs
(Gijs de Zwart)
January 20, 2024, 8:42pm
6
hi @AMG what @clement suggest should work. I’ll ask if loading rhp’s like it can be done on Windows is possible
AMG
January 20, 2024, 9:45pm
7
Using the *.yak works. What is the difference between the .yak and .rhp?
wim
(Wim Dekeyser)
January 21, 2024, 1:08pm
8
Hei Håvard -
A .yak file is basically a .zip file where the extension has been changed to .yak. It contains / can contain an .rhp file.
Further reading: Rhino - The Anatomy of a Package
-wim
lopez
April 2, 2024, 10:45am
9
I’m trying to export my Grasshopper definitions as a Grasshopper plugin. I’ve followed the video, but I don’t have the GHA file in my output folder as expected.
Thanks for helping,
Roy
lopez
April 8, 2024, 7:41am
10
Someone from MCNEEL could help?
lopez
April 9, 2024, 12:49pm
11
Hi Wim,
do You have some answer to my following question?
Thanks,
Roy
wim
(Wim Dekeyser)
April 9, 2024, 4:18pm
12
Hi Roy -
No, I don’t. @eirannejad probably has more information about this.
-wim
eirannejad
(Ehsan Iran-Nejad)
April 11, 2024, 6:08pm
13
@lopez Would you mind sending me your .rhproj
file. The screenshot does not tell me much
lopez
April 15, 2024, 8:10am
15
Hi Ehsan,
here it is the file.
Thanks,
Roy
gh_plugin.rhproj.zip (913 Bytes)
lopez
April 18, 2024, 11:04pm
17
Is someone from McNeel? Is it not an important issue to solve? Thanks
eirannejad
(Ehsan Iran-Nejad)
April 19, 2024, 1:32am
18
Hi @lopez . Yes I am here. I’m sorry there is been a large list of bugs and posts that I had to go thru. I will look at this right now
eirannejad
(Ehsan Iran-Nejad)
April 19, 2024, 1:36am
19
@lopez I only see that you have added gh_plugin.gh
to the project but you have not included that in the zip file so I can not see what is inside.
In order for the script editor to create Grasshopper plugin, you would need one of these two conditions. Either:
Grasshopper definition has at least one Script component in it. Each Script component turns into one Grasshopper Component in the GH plugin
Grasshopper definition has at least one Contextual component. In this case, the full definition turns into one Grasshopper Component in the GH plugin
Take a look at this video for more info:
lopez
April 19, 2024, 8:43am
20
Hi Ehsan,
Thank You for your reply.
My plugin is made mainly with Grasshopper clusters, so I can easily export each command as a GH user command. However, I need to create a single plugin with all the commands to share it. Is this possible?
Thanks,
Roy
eirannejad
(Ehsan Iran-Nejad)
April 19, 2024, 3:01pm
21
You can. The Grasshopper definition must contain contextual componets if it needs input. You can add a Grasshopper file under the Commands/
in a project as well. Edit the item in project explorer to customize name, icon, etc.
lopez
May 29, 2024, 10:31am
22
I’m trying following your video to create a grasshopper plugin with my clusters but it doesn’t work. Can You please share an example with a simple grasshopper cluster ? Thanks, Roy