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-128363 pin stage in layer editor #3052

Merged
merged 6 commits into from
May 5, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

Add a pin to the stage selector widget, to the right of the selector box.

  • Refactor code dealing with bitmaps from the layer editor into QtUtils.
  • The pin switches between following the selection or not.
  • When unpinned it follows the selection.
  • Move UI creation into its own function.

Trigger auto stage-selection when the outliner selection changes:

  • Add a UFE selection observer.
  • The observer triggers the stage selector widget.
  • Register the stage selector widgets with the selection observer.
  • Make the selector widget switch stage based on the selection.

Add a pin to the stage selector widget, to the right of the selector box.
- Refactor code dealing with bitmaps from the layer editor into QtUtils.
- The pin switches between following the selection or not.
- When unpinned it follows the selection.
- Move UI creation into its own function.

Trigger auto stage-selection when the outliner selection changes:
- Add a UFE selection observer.
- The observer triggers the stage selector widget.
- Register the stage selector widgets with the selection observer.
- Make the selector widget switch stage based on the selection.
@pierrebai-adsk pierrebai-adsk added enhancement New feature or request adsk Related to Autodesk plugin labels May 2, 2023
@pierrebai-adsk
Copy link
Collaborator Author

FYI, PF build 942 passed, only the known failure of the isolate select image comparison test on Maya 2022 failed.

AramAzhari-adsk
AramAzhari-adsk previously approved these changes May 2, 2023
- Default to following the selection (unpinned).
- Remember the pin/unpin state between Maya sessions.
- Renamed _pinLayer to _pinStage since it is the stage that is pinned or unpinned.
- Removed signal blocker that prevented the layer editor from updating.
AramAzhari-adsk
AramAzhari-adsk previously approved these changes May 2, 2023
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label May 2, 2023
@seando-adsk seando-adsk merged commit 24aeaaf into dev May 5, 2023
@seando-adsk seando-adsk deleted the bailp/MAYA-128363/layer-editor-follow-selection branch May 5, 2023 18:11
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 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.

3 participants