I’m having trouble with a script that helps me to simplify some sketchup files that we get from time to time in the office.
Hundreds of thousands of individual meshes that I want to join by layer.
I saw the script above which should be faster than the normal join command and I would like it to automatically join all the meshes for each layer.
this is the script snippet I am starting from:
def JoinByLayer() :
layer_list = rs.LayerIds()
rs.EnableRedraw(False)
for layer_id in layer_list:
rs.UnselectAllObjects()
rs.ObjectsByLayer(layer_id,True)
objs=rs.SelectedObjects()
if objs and len(objs)>1: rs.Command("_Join")
What I would like is a way to join a large number of single meshes in the fastest way possible, hypothetically even 1 million single meshes by layer.
Up to a few thousand meshes everything seems to work fine with the command line join, but if we are talking about hundreds of thousands of meshes, then it hangs forever…
I am using rhino 7 latest sr.
Can anyone help me with this?
Thanks in advance!
5 posts - 3 participants