Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing USD Stage #5

Open
cadop opened this issue Aug 17, 2023 · 0 comments
Open

Closing USD Stage #5

cadop opened this issue Aug 17, 2023 · 0 comments

Comments

@cadop
Copy link

cadop commented Aug 17, 2023

In the notebook there is an example for opening a USD stage: ColaboratoryNotebooks/opening_stages.ipynb

It would be nice to show at the end of it, how to close the stage. I may just have an unrelated problem that is manifesting this way, but in the worst case, maybe a comment at the end of the tutorial on what "open" vs. "close" would mean.

Use case:
I have a sort of circular reference problem, where I open a stage X, I open a new stage Y, but Y is referenced in X. I got what I needed out of X (e.g. points of a mesh), so I don't need it anymore.

    self.stage = stage = Usd.Stage.CreateNew(stage)
pxr.Tf.ErrorException:
        Error in 'pxrInternal_v0_23__pxrReserved__::SdfLayer::_CreateNew' at line 616 in file D:\a\1\s\pxr\usd\sdf\layer.cpp : 'A layer already exists with identifier 'XXX/Y.usd''

Maybe its not using nucleus/usd correctly, but the point is that I want to have a scene with a reference to another scene inside it. I do some operation on the referenced scene, and want it to update (fetch) to see the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant