Background:
- We have a few ArResolver plugins that we use in-house to deal with cloud-based assets. These asset paths are invalid on the local machine.
- I recently compiled Adobe’s FileFormats plugins and discovered that they work by registering multiple SdfFileFormat plugins.
The Adobe’s plugins cannot recognize our in-house asset paths, and it is not a good idea to make them depend on our in-house packages. Based on my development experience, I decided to support them by using ArAssets, which has been fully tested for years since Ar2.0.
I modified the base class of SdfFileFormat to cache assets locally when matching a certain regular expression, and I have attached my patch to this thread. I’m pretty sure my patch works outside the USD modules since we are still using it. However, when the same patch is applied to USD’s or USD plugins’ source code, it will not take effect.
I’m writing to ask for help and to find out what the correct way to do this. I wonder if the patch fails due to the loading phase or some other complex dependency issues, but I can’t figure it out…
Ping @spiff, and hope you have a good day.
SdfFileFormat.txt (6.7 KB)