Ghpython Input name

Hello
Is it possible when the value changed than the name of input changed?

0 >> Option1
1 >> Option2
2 >> Option3 …

image

1 Like

I do not think this is possible in an efficient way, without going into some heavy GH-canvas manipulations.

Why do you want to do this? Is this for fnctiunality or aesthetic reasons?

I tried to use angle input but from another thread it is impossible with python, i thought changing name will be a solution but i found another way with using boolean.
Ghpython is limited

1 Like

The only way I know is by adding and removing parameters similar to robots plugin (c#)

Thank you , i have no idea with c# and some features can not done by Ghpython.
By the way can you add a quick graph component with x,y inputs to your tools , it is useful to show graphs without draw them in rhino, i tried but i have 0 knowledge with c#; System.Drawing… etc

I’m not entirely sure I follow, but these properties might point you in the right direction:

200929_SetInputParamNames_00.gh (2.3 KB)

I’d agree that this is likely an unnecessary solution though. There’s probably simpler approaches to whatever your dataflow problem is.

3 Likes

Thank you this is very useful , i will check it

1 Like

Work great thank you

1 Like

I forget to call ghenv.Component.Params.OnParametersChanged() by the way. Probably best to call this after fiddling with the parameter.

1 Like