Dmitry_Dronov

samozatiraemij_cikl

Jul 21st, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import clr
  2. clr.AddReference('ProtoGeometry')
  3. from Autodesk.DesignScript.Geometry import *
  4. #The inputs to this node will be stored as a list in the IN variable.
  5. list1, list2 = [], []
  6. #Input
  7. pt0 = IN[0]
  8. len_s = IN[1]
  9. max_len_of_brus = IN[2]
  10. len_s_2 = len_s[:]
  11. len_s_3 = len_s[:]
  12. #array
  13. for i in range(len(len_s)-1):
  14.     ind = len(len_s)-i-1
  15.     #len_s_3.remove(len_s[ind])  
  16.     del len_s_3[ind]
  17.     list1.append(len_s_3)
  18.     len_s_3 = len_s_3[:]
  19.     #list1.append(ind)
  20.     #list2.append(list1)
  21.  
  22. OUT = list1
Advertisement
Add Comment
Please, Sign In to add comment