Merged Alembic Generator object, how to check if it is a camera?
-
When importing an Alembic it turns the objects into Alembic Generators. How can I, without making the objects editable detect whether the object is a camera or not?
print(op.GetTypeName())
Prints:
Alembic Generator
. -
Hi @BigRoy,
For the alembic camera, you can use c4d.MSG_GETREALCAMERADATA, for example:
def main(): data = dict() op.Message(c4d.MSG_GETREALCAMERADATA, data) print(data['res'])
Another option (which would work for other object types as well) would be to check type of the object's cache using GetCache().
Cheers,
Ilia