@obakatsu wrote:
Hi everyone!
I am trying to write script which split surface and select surface which has biggest area from splitted surfaces.
Script is following.
But I get error message "'NoneType' object is not subscriptable"
Could anyone give me some advice why I am getting this message and how to solve the problem?splitted=rs.SplitBrep(surface,Obj,False) base=splitted[0] baseArea=rs.SurfaceArea(base)[0] for sur in splitted: area=rs.SurfaceArea(sur)[0] if area < baseArea: rs.DeleteObject(sur) else: rs.DeleteObject(base) baseArea=area
Thank you in advance.
Katsuya
Posts: 4
Participants: 4