Hi,
I'm currently troubleshooting a rig with priority problems. I'm trying to print out tags that have "logical" priority data such as constraint, IK and IK-spline. However, it seems like all tags have priority data such as phong tag despite the fact that the priority data is not available for editing (i.e. visible) for such tags.
Is there a way to list tags with logical priority data?
Thank you for
Here is the code so far
import c4d
doc = c4d.documents.GetActiveDocument()
# Recurses a hierarchy, starting from op
def recurse_hierarchy(op):
while op:
for tag in op.GetTags():
if tag[c4d.EXPRESSION_PRIORITY]:
print tag.GetName()
recurse_hierarchy(op.GetDown())
op = op.GetNext()
if doc:
# Iterate all objects in the document
recurse_hierarchy(doc.GetFirstObject())
P.S. There seems to be typo in the documentation (https://developers.maxon.net/?p=26)
Under the python usage, it says
doc = c4d.GetActiveDocument()
It gives me an error.
I think it should be.
doc = c4d.documents.GetActiveDocument()