Advertisement
gr4ph0s

yolo

May 26th, 2016
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. import c4d
  2.  
  3. def main():
  4.     obj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_0)
  5.     obj = obj[0]
  6.     while obj.GetUp():
  7.         obj = obj.GetUp()
  8.    
  9.     doc.SetSelection(obj,c4d.SELECTION_NEW)
  10.     c4d.EventAdd()
  11.  
  12.  
  13. if __name__=='__main__':
  14.     main()
  15.  
  16.  
  17.  
  18.  
  19. #just up:
  20. import c4d
  21.  
  22. def main():
  23.     obj = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_0)
  24.     obj = obj[0]
  25.     obj = obj.GetUp()
  26.    
  27.     doc.SetSelection(obj,c4d.SELECTION_NEW)
  28.     c4d.EventAdd()
  29.  
  30.  
  31. if __name__=='__main__':
  32.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement