There seems to be a bug in Rhino 6 (6.18.19239.01072, 2019-08-27) concerning the export of GHPython components as User Objects. Selecting a custom icon from the export window isn’t possible, since the file browser doesn’t open when you click the button.
With the GHPython component that I want to save as a user object selected on the canvas, I go to the Grasshopper File menu, select Save User Object and the User Object Properties window pops up. Setting a user object icon via the file browser, is not possible, since the button is dead:
@diff-arch Btw, this can be worked around in the case of the GhPython component, which by itself supports icon overriding. You can give the component a new icon, which will influence the User Object icon when the dialog is opened.
Do to that, simply drag and drop a (48px x 48px) png image file with transparency on top of the GhPython component center.
Unfortunately, your proposed method doesn’t work either! When I drag the PNG onto the center of the GHPython component an image sampler is created, displaying the imported PNG. I tried a couple of times with different zoom factors and with the component selected and unselected, but without success!
Please fix the dialogue, guys!!
That’s probably because I made a mistake and mentioned 48x48. This used to work with all sizes, but I think that now this only accepts a precise size: you need a 24x24 png icon. @curtisw tested this on the Mac:
Thanks, @piac! Do you know how to prevent icons from becoming blurry when zooming into the component? Seems to be due to the small, acceptable resolution.