I’m trying to use an old code example to rename a component’s input Name/NickName.
It fails in Python 3 but works fine in Python 2:
vd = ghenv.Component.Params.Input[0].VolatileData
firstItem = str(vd[0][0])
# Set names of first input parameter
ghenv.Component.Params.Input[0].Name = firstItem
ghenv.Component.Params.Input[0].NickName = firstItem
2 posts - 2 participants

