Hello!
I am developing a plugin for grasshopper and trying to add an icon for a component. It seems like the way of adding resources has now changed and I cannot get it to work.
When I go to Properties>Resources I no longer get the page to add resources, but a warning that this has changed and a link to the new location to do this.
when I go there I add the resource by pressing the green + button:
but then when I try to add the icon in the code (using the same name):
thanks in advance!
Hello
I do that , less simple than with Rhino 7 but it seems to work
hi Laurent,
thanks for your help and quick reply.
I have tried replicating your code but i still get the same error.
can you please run me through the process of adding the image in more detail - there must be something im not doing
thanks!
Hard to go in more detail
click on that
I got that
In your description you say you are on Mac ?
Also I think I found using this forum or other place on internet.
Hi All,
I’ve followed the great little blog below to setup my first component on macos with VSCode for Rhino8 by by Steve Baer and Callum Sykes
While there are a few steps missing, like *.sln file and *.csproj generation, the big issue for me is how to include local png files as the component icons. Remember this is macos and VSCode.
Could someone provide some example csharp code for this, or maybe another blog post for a complete comopnent?
Cheers!
https://developer.rhino3d.com/guides/gras…
yeah so my problem is for some reason the files arent getting added correctly to the resources, i do not get them on autocomplete.
sorry the mac tag was an error, i have now removed it. thanks!