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-110727 - USD load/unload payloads does not update viewport #1332

Merged

Conversation

seando-adsk
Copy link
Collaborator

MAYA-110727 - USD load /unload all payloads button does not update viewport dynamically

  • Special case for Maya 2020 (and below).

…ewport dynamically

* Special case for Maya 2020 (and below).
@seando-adsk seando-adsk added the adsk Related to Autodesk plugin label Apr 13, 2021
Comment on lines +74 to +75
button -e -c ("evalEcho AEMayaUsdProxyShapeStageLoadAll(\"" + $fullNodeName + "\")") payloadsLoadAllBtn;
button -e -c ("evalEcho AEMayaUsdProxyShapeStageUnloadAll(\"" + $fullNodeName + "\")") payloadsUnloadAllBtn;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used evalEcho here so that pressing the button will echo the command in script editor history.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I have no idea about this one, but I will just trust you.

Comment on lines +47 to +52
// Maya 2022 and above will automatically refresh the viewport, but
// for earlier versions of Maya we need to do it manually.
int $mjv = `about -majorVersion`;
if ($mjv < 2022) {
refresh;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Special case for Maya 2020 (and earlier) since they don't have UFE v2 which contains the subtree invalidate notif that we use to refresh Maya viewport.

@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 14, 2021
@kxl-adsk kxl-adsk merged commit 3b527be into dev Apr 14, 2021
@kxl-adsk kxl-adsk deleted the donnels/MAYA-110727/load_unload_payloads_refresh_for_Maya2020 branch April 14, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin 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