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

MAYA-127817 make stage set by ID reloadable #3010

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

When the stage is set on the proxy shape via the stage ID attribute, fill the file path attribute automatically so that the stage can be reloaded when the Maya scene file is reloaded.

The stage ID attribute is not saved and the ID is a run-time value in USD that is not constant from run to run. The only way to be reloadeable is to save the file path to the root layer.

  • Fill the file path attribute when computing the stage if the stage is set by stage ID.
  • Only do this if the stage is not anonymous.
  • Add a unit test that verifies the stage is reloaded when the Maya scene is reloaded.

When the stage is set on the proxy shape via the stage ID attribute, fill the file path attribute automatically so that the stage can be reloaded when teh Maya scene file is reloaded.

The stage ID attribute is not saved and the ID is a run-time value in USD that is not constant from run to run. The only way to be reloadeable is to save the file path to the root layer.

- Fill the file path attribute when computing the stage if the stage is set by stage ID.
- Only do this if the stage is not anonynous.
- Add a unit test that verifies the stage is reloaded when the Maya scene is reloaded.
@pierrebai-adsk pierrebai-adsk added enhancement New feature or request adsk Related to Autodesk plugin proxy Related to base proxy shape labels Apr 5, 2023
vlasovi
vlasovi previously approved these changes Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin enhancement New feature or request proxy Related to base proxy shape ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants