Open 28Rohit opened 4 weeks ago
Hey, sorry for the late reply. This is great! I'll try to find some time to review this soon, so that we can add it to the repo. Thanks for the documentation on what needs to be added.
Hi @LucaScheller, Thanks for the reply, I was trying to load the stage with context which seems to be working fine,
Reference code that I have used:
from pxr import Usd , Ar , Sdf , UsdUtils
stage_cache = UsdUtils.StageCache.Get()
stage = stage_cache.GetAllStages()[0]
context_collection = stage.GetPathResolverContext()
pythonResolver_context = context_collection.Get()[0]
print(pythonResolver_context.GetData())
#LogPython: {"searchPaths": ["C:\\path\\to\\VFX-UsdAssetResolver-main\\files\\generic\\workspace\\shots", "C:\\path\\to\\VFX-UsdAssetResolver-main\\files\\generic\\workspace\\assets"], "mappingRegexExpression": "\"(bo)\"", "mappingRegexFormat": "\"Bo\"", "mappingPairs": {}}
I am still more curious for help or examples which can help to streamline the workflow and make production ready from Unreal side. Many thanks in advance.
Hello!
This is not an issue, I want help to set a custom resolver before opening the stage in side unreal so that even some tries to load stage with the help of USD stage importer, the stage should open with that context.
Build for unreal asset resolver
CMakeList.txt
setup.bat