def main(): # first, select objects in three orthogonal planes positive = rs.GetObjects("select plane 1 objects", filter=16) # polysurface negative = rs.GetObjects("select plane 2 objects", filter=16) subdivisions = rs.GetInteger(message="enter subdivisions (odd)", number=5, minimum=2, maximum=None) finger.make_fingers(positive, negative, subdivisions) finger.perform_subtraction()
def main(): # first, select objects in three orthogonal planes xs = rs.GetObjects("select X objects", filter=16); # polysurface ys = rs.GetObjects("select Y objects", filter=16); zs = rs.GetObjects("select Z objects", filter=16); subdivisions = rs.GetInteger(message="enter subdivisions (o)", number=5, minimum=2, maximum=None) for positive, negative, hidden in ((xs, ys, zs), (xs, zs, ys), (ys, zs, xs)): rs.HideObjects(hidden) finger.make_fingers(positive, negative, subdivisions) rs.ShowObjects(hidden) finger.perform_subtraction()