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

List input problem?

$
0
0

Hi !

I’m certainly no pro when it comes to python inside of Grasshopper, but I’m encountering something that makes me feel like a total stranger.

The setup I got can hardly be more simple :

my_list = list_from_gh             # with list access
print(my_list)                     # prints  the list (that's wild I know)

function_result  = my_function(my_list, other_argument)
print(my_list)                     # prints... an empty list?

I cannot express my level of confusion on such a basic topic… I’m starting questioning my own name :slight_smile:
If anyone has an explanation to this, it would be greatly appreciated…

Cheers,
Antoine

Edit : I tested also with tree access and read it as a list, but the same behavior appears…

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4125

Trending Articles