Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import c4d
- from c4d import gui
- def recurse_hierarchy(op):
- while op:
- try:
- tag = op.GetTag(5612)
- tag[c4d.PHONGTAG_PHONG_USEEDGES] = False
- except:
- pass
- recurse_hierarchy(op.GetDown())
- op = op.GetNext()
- def main():
- if doc:
- # Iterate all objects in the document
- recurse_hierarchy(doc.GetFirstObject())
- c4d.EventAdd()
- gui.MessageDialog('Fini')
- if __name__=='__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement