algorithmic modeling for Rhino
Have you done that component with Visual Studio ? If so, you have to override the component's Icon property and return an icon from the project resources.
If you have a c# script component, than it would be best to create an user object out of that, then you can assign it an icon as well.
For the case of a scriptable component: I usually just drag and drop a 24x24 png on it.
i've done the component with visual studio
i know there is "protected override System.Drawing.Bitmap Icon"
I dont think i have Resources folder
I have the 24X24 png, but where is the project resources?
I wrote my custom component in VB. I am using the "Bitmap.FromFile" function. Here is my code for overriding the Icon property:
Protected Overrides ReadOnly Property Icon() As Bitmap
Get
Return Bitmap.FromFile(Directory)
End Get
End Property
Is it possible to do this in a python script/component?
If drag+dropping a 24x24 png file onto the component doesn't work then it's probably not possible.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by