Created
May 17, 2023 11:29
-
-
Save BigRoy/3873421057d9b8bf717b470dd28cdd4c to your computer and use it in GitHub Desktop.
OpenPype v3 query the representations from a published file path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from openpype.pipeline import legacy_io, Anatomy | |
path = r"/path/to/representation/file.abc" | |
anatomy = Anatomy() | |
success, rootless_path = anatomy.find_root_template_from_path(path) | |
assert success | |
for result in legacy_io.find({"files.path": rootless_path, "type": "representation"}): | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example for Maya to "recontainerise" references as if they were using the ReferenceLoader loader.