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

Python min(Pointlist.Y) do odd things

$
0
0

@flokart wrote:

Hi all,

what do i wrong…i try to get the min .Y values from point lists but
min(rh.Collections.Point3dList(i).Y)
gives me not the expected result

min.3dm (62.4 KB)
min.gh (17.5 KB)

strange result, max works but not min…wil try a list comprhension to get the right result
Thanks for help

OK list comprhension works.
[min([j.Y for j in i]) for i in x ]

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles