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

Loading stage layers under new parent xform #3743

Open
BSalem opened this issue Apr 30, 2024 · 6 comments
Open

Loading stage layers under new parent xform #3743

BSalem opened this issue Apr 30, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@BSalem
Copy link

BSalem commented Apr 30, 2024

Some assets might be exported out without roots, when loading a stage sublayers, all objects from all usd layers are merged down together under the stage, while it's not possible to create xform and do make it parent to the loaded usd sublayer prims.

So I'm suggesting adding an option/checkbox withing the "Load sublayers" dialog beside each sublayer to allow loading it under a newly created xform which gets saved with the stage including the transform edits applied on it.

@BSalem BSalem added the enhancement New feature or request label Apr 30, 2024
@santosd
Copy link
Collaborator

santosd commented Apr 30, 2024

Thank you for logging this @BSalem, we will discuss this with the team and see if this could be a possibility.

@BSalem
Copy link
Author

BSalem commented May 1, 2024

thanks David @santosd

@santosd
Copy link
Collaborator

santosd commented May 1, 2024

Hi @BSalem, I was discussing this with one of our designers and she stated that because of how USD works this may not be a possibility. However, the way that is possible to do this currently is to load in your file as a reference or a payload. So basically create a stage, create your Xform and then right click on it and use the "Add USD Reference\Payload" then this load it under the Xform. Let me know if this could work on your end.

@BSalem
Copy link
Author

BSalem commented May 2, 2024

Hi @santosd
thanks for the info, that's what I tried, but I couldn't have the payload geometries to show up in the viewport even after saving the stage and recreating it with loadAllPayload option.
I will give it another shot and see

@santosd
Copy link
Collaborator

santosd commented May 9, 2024

@BSalem on export make sure that your usd file has a default prim selected; only the root prim will show in a USD Reference file. If there is no default prim, then nothing will display. If you have multiple geos in Maya that you want to export and use in your USD reference, then you may want to put them all under the same Group and select that Group as the default prim so that you can see everything you want un the USD Reference.

@BSalem
Copy link
Author

BSalem commented May 9, 2024

Thanks @santosd , yeah, I noticed that.
Actually I was trying to find a solution for supporting our current pipeline methodology, in which we are exporting the assets without a root, as the asset_root xform was being created at reference time, but it seems that we will have to change this concept (although it useful in many different scenarios, but there is always another way)

We still have our usd exporter which translates the USD/Alembic Maya References into an assembly USD stage according to hierarchy we setup in Maya, that we can use it anyway until we do the transition, however, it would be great if we consider the ability to load USD references under user defined paths (as what can do in Katana and Solaris).

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

No branches or pull requests

2 participants