Advertisement
gr4ph0s

Untitled

May 14th, 2016
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import c4d
  2. from c4d import gui
  3.  
  4. def recurse_hierarchy(op):
  5. while op:
  6. try:
  7. tag = op.GetTag(5612)
  8. tag[c4d.PHONGTAG_PHONG_USEEDGES] = False
  9. except:
  10. pass
  11. recurse_hierarchy(op.GetDown())
  12. op = op.GetNext()
  13.  
  14.  
  15. def main():
  16. if doc:
  17. # Iterate all objects in the document
  18. recurse_hierarchy(doc.GetFirstObject())
  19.  
  20. c4d.EventAdd()
  21. gui.MessageDialog('Fini')
  22.  
  23.  
  24. if __name__=='__main__':
  25. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement