Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import c4d
- def RemoveTag(obj):
- tagIds = (1039151, 1039117, 1039167)
- tags = obj.GetTags()
- for tag in reversed(tags):
- if tag.GetType() in tagIds:
- doc.AddUndo(c4d.UNDOTYPE_DELETE, tag)
- tag.Remove()
- def IterateScene(obj):
- while obj:
- IterateScene(obj.GetDown())
- RemoveTag(obj)
- obj = obj.GetNext()
- def main():
- doc.StartUndo()
- IterateScene(doc.GetFirstObject())
- doc.EndUndo()
- c4d.EventAdd()
- if __name__=='__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement