Advertisement
Guest User

Untitled

a guest
Aug 10th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. (
  2. obj = $
  3. baseobj = obj.baseobject
  4. epoly = obj.Edit_Poly
  5.  
  6. flag = bit.set 0 30 true
  7. c_getEdgeFlags = polyop.getEdgeFlags
  8.  
  9. modPanel.setCurrentObject baseobj
  10.  
  11. edgesel = polyop.getEdgeSelection baseobj
  12. polyop.setEdgeFlags baseobj edgesel flag mask:flag
  13. polyop.getEdgesByFlag baseobj flag
  14.  
  15. modPanel.setCurrentObject epoly
  16.  
  17. edgesNew = #{}
  18. for i=1 to (polyop.getNumEdges obj) do
  19. (
  20. fl = c_getEdgeFlags obj i
  21. if bit.get fl 30 then edgesNew[i] = true
  22. )
  23. subobjectlevel = 2
  24. epoly.SetSelection #Edge #{}
  25. epoly.Select #Edge edgesNew
  26. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement