Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Unable to access input parameter value with Python 3 in Rhino 8

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles