Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clr
- clr.AddReference('ProtoGeometry')
- from Autodesk.DesignScript.Geometry import *
- #The inputs to this node will be stored as a list in the IN variable.
- list1, list2 = [], []
- #Input
- pt0 = IN[0]
- len_s = IN[1]
- max_len_of_brus = IN[2]
- len_s_2 = len_s[:]
- len_s_3 = len_s[:]
- #array
- for i in range(len(len_s)-1):
- ind = len(len_s)-i-1
- #len_s_3.remove(len_s[ind])
- del len_s_3[ind]
- list1.append(len_s_3)
- len_s_3 = len_s_3[:]
- #list1.append(ind)
- #list2.append(list1)
- OUT = list1
Advertisement
Add Comment
Please, Sign In to add comment