Quantcast
Viewing all articles
Browse latest Browse all 5778

Set value of python component output / ghenv.Component.Params.Output[1].SetValue

Hello!

First of all, thanks for your help!

How can I set the value of an output without explicitly using a = 5.
I think it can be done using ghenv.Component.Params.Output[1].SetValue(), but I don’t know exactly what I need to provide to the function.

Error message:
“”"
Runtime error (TypeErrorException): cannot access protected member SetValue without a python subclass of GH_DocumentObject

Traceback:

  • line 17, in script*
    “”"

ghenv_Component_Params_Output_Set_Value.gh (3.4 KB)

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5778

Trending Articles