I am completely OK with a custom component actually. The input will be 19 values in this case - I want to set the label for each value for visual purposes.
So for example, “i” has a value of 0.6 currently. I want to rename “i” to “WWR”. If this is possible through a custom component - that works too.
I found another thread that does something similar but having difficulties in running the script correctly. https://www.grasshopper3d.com/forum/topics/variable-input-parameters-ghpython
This is what I am doing. While it adds outputs with the correct names (from list input x), it does not assign the relative values (from list y). Also, every time I run, it creates additional output parameters.
import rhinoscriptsyntax as rs
import Grasshopper.Kernel as kr
import Rhino.Geometry as rg
param = kr.Parameters.Param_String()
param.NickName = name
param.Name = name
param.Access = kr.GH_ParamAccess.list
index = ghenv.Component.Params.Output.Count
for i in range(0,len(y)):
var_name = str(x[i])
exec("%s = %s" %(var_name,y[i]))