I'm looking for a way to check if a USD file reference is loaded but here is what I noticed.
I was trying to do this with the following code:
- Code: Select all
ctx = ix.get_item("path/to/context")
ctx.get_engine().is_loaded()
This works fine when I do it on an Alembic file reference as get_engine() returns a OfFileReferenceContextEngine, while it returns a OfOverridesContextEngine when I do it on a USD file reference and so it can't find the is_loaded() method from it.
I was wondering if this could possibly be due to some changes that have been implemented in Clarisse 5 which might have introduced this bug.
Also I could not create an instance of OfFileReferenceContextEngine from the context, like ix.api.OfFileReferenceContextEngine(ctx), so I'm not quite sure how I could do it and therefore was hoping to get more info on this.
Thanks,
Jeremy