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

Loop that select biggest Mesh and Nurbs object

$
0
0

@texbls wrote:

Hi,
I have a model in NURBS on layer1 and mesh version of the same thing on layer2 and I need to
select part as a nurbs and then the same part as mesh a then perform an specific action on each pair (NURBS+mesh).

My idea is to create a loop that will find two biggest - in terms of volume or area, geometries, then two second biggest and so on… till it ends with the smallest pair.

I have found some interesting scripts when it comes to selecting geometry by volume but I am getting an error
"

  • Message: ObjectsByType() got an unexpected keyword argument ‘state’

Traceback:
line 6, in SelSrfsByArea, “C:\Users\Dell\Downloads\SelSrfsByArea.py”
line 77, in , “C:\Users\Dell\Downloads\SelSrfsByArea.py”
"SelSrfsByArea.py (2.6 KB)

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6015

Trending Articles