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

Iteration over non-sequence of type NoneType

$
0
0

@Jack_Zeng wrote:

Hi all,

I am trying to write a script to let python to help to get panels in a row.
This script could be useful when you have thousands of panels.
The strategy is to provide the first panel in the row and specify a vector for selection then let python to select the rest on the row from the panel collection.


It is almost getting there but I got an error saying" Iteration over non-sequence of type NoneType".
I am not sure what does it mean but I am pretty sure it occur due to I have remove a panel from the list of panels.
Appreciate if someone can tell me why it would be a problem -- why can't I remove a panel? I thought a list should be dynamic and you can always modify it...

Select panels in a row.3dm (93.5 KB)
Select panels in a row.py (1.2 KB)

Thanks for any help,

Jack

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5746

Trending Articles