On 10/03/2017 at 06:18, xxxxxxxx wrote:
I was scrtipting a script for removing all tag from obj.
But I discover some hidden tag. So what the goal of them?
Since that complettly broke mesh with ngon, is there other hidden tag wich is preferable to don't delete?
keep_tag_id = [5600, 5672, 5604]
objs = doc.GetActiveObjects(c4d.GETACTIVEOBJECTFLAGS_SELECTIONORDER | c4d.GETACTIVEOBJECTFLAGS_CHILDREN)
doc.StartUndo()
for obj in objs:
tags = obj.GetTags()
for tag in reversed(tags) :
if tag.GetType() not in keep_tag_id:
print tag
doc.AddUndo(c4d.UNDOTYPE_DELETE, tag)
tag.Remove()
c4d.EventAdd()
doc.EndUndo()