Parameter descriptions do not show up on component

I am working on making a plugin in Rhino 8. I was testing the new method in Rhino 8’s Script Editor which allows you to convert custom Grasshopper/Python scripts into compiled components. When I initially place the compiled component on the canvas and hover over the parameters of the compiled component, i can’t see the descriptions that I set up inside the python script. Whenever I connect an input geometry, the component runs the script and descriptions appear correctly. I wonder if I miss a step while compiling the components or if it is a bug that needs to be fixed. Thank you!

image

@hcuretmen Try setting the human-readable name and tooltip (description) on the component parameters. See this guide:

https://developer.rhino3d.com/guides/scripting/scripting-gh-python/#publishing-scripts

When you set descriptions inside the script, they are only assigned when the script is executed. They are also run EVERY TIME your script runs which is quite unnecessary.

Let me know if this makes sense

It works when I use the “tooltip” but it does not allow me to paste a long description with multiple lines like the one on the image that I shared previously.

Oh I see. I logged the issue here and will get it fixed:

RH-81925 Script Component/Parameter Tooltip does not accept multiple lines

1 Like

Thank you Ehsan!

They will be larger and multiline in Rhino 8.8

1 Like