Script editor compliled grasshopper component default inputs

Hi,

I’m compiling a Grasshopper plugin with the Script Editor in Rhino 8.

I have a pyhton script as source. I’d like to set a default input value for the compiled component, but I can’t figure out how to di it.

Does anyone know if it’s possible and how?

Thanks

Hi @Mattia_Bressanelli

I usually add it inline in my Python code:

if title == None:
    title = "DKUI"

Cheers

DK

Hi,

that’s an option that works for the component execution, the problem is that it does not show up in the hover preview. I can write in the tooltip, but it would be nice to have a way to add it like in c# compiled components and clusters.

Thanks

Yes - I just write the default as a note in the tooltips on that input - not ideal but it does work.

Cheers

DK