Hi,
I'm trying to clone an object and delete the tags attached on the original object.
Here is the code:
# Select an editable object
def main():
# Copy original object
obj = op.GetClone(c4d.COPYFLAGS_NO_HIERARCHY)
doc.InsertObject(obj)
# Remove Tags
tags = obj.GetTags()
for tag in tags:
tag.Remove()
c4d.EventAdd()
The problem is the Remove Tags
section deletes not only tags but also the points. So even though the object is in the hierarchy, it doesn't contain any points.
Is there a way around this? Thank you