Skip to content

Understanding UsdUtils.StageCache and mayaUsd.lib.StageCache #1377

Answered by kxl-adsk
eddiehoyle asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the additional context.

In short, I would recommend relying more on Maya's data model and not on stage caches. This is exactly what we do for UFE workflows (see stage map) and in Layer Editor (see maya session state). What it means is that you will build tools that work with proxy shapes and query the stage from the proxy. FWIW. you can query stage directly from proxy using python - two possible ways are described in this discussion post.

Now, a little about the stage caches. MayaUsd stage cache (mayaUsd.lib.StageCache) should really be considered as an implementation detail. For some time we were forced to include all proxy shape stages into the stage cache because data sto…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@eddiehoyle
Comment options

Comment options

You must be logged in to vote
1 reply
@eddiehoyle
Comment options

Answer selected by eddiehoyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants