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

EMSUSD-256 allow Maya ref to be relative to the layer. #3236

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

  • Prepare the current edit target before showing the file dialog.
  • Make the function used for this preparatio clearer by naming the flag passed to disable the option for using the scene file as the relative root. When making things relative to the edit target, we don't want to accidentlly use the scene as the root when no saved layer exist.
  • Make the code creating the dialog for Maya ref use the code to make the path relative.
  • Change the label of the seperator in the file dialog.
  • Refactor the common Python code to avoid passing around some options and at teh same time make the function override have the same parameters. Having the same paarmeters is necessary since differnt classes will end-up calling different functions with the same parameters.
  • Split the code that create the relative path UI in two: one to setup the layout, one for the UI elements.
  • This was necessary because the dialog for the Maya ref already setup the layout.
  • Create new class for Maya ref relative UI.

seando-adsk
seando-adsk previously approved these changes Jul 28, 2023
Copy link
Collaborator

@seando-adsk seando-adsk left a comment

Choose a reason for hiding this comment

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

I have an PR #3248 which is moving ContextOps to UsdUfe. The change you made will be in the new MayaUsdContextOps.cpp (in the mayausd/ufe folder). If you don't mind I would like to merge mine first and then you will probably have to merge in latest dev.

- Prepare the current edit target before showing the file dialog.
- Make the function used for this preparation clearer by naming the flag passed to disable the option for using the scene file as the relative root. When making things relative to the edit target, we don't want to accidentlly use the scene as the root when no saved layer exist.
- Make the code creating the dialog for Maya ref use the code to make the path relative.
- Change the label of the seperator in the file dialog.
- Refactor the common Python code to avoid passing around some options and at teh same time make the function override have the same parameters. Having the same paarmeters is necessary since differnt classes will end-up calling different functions with the same parameters.
- Split the code that create the relative path UI in two: one to setup the layout, one for the UI elements.
- This was necessary because the dialog for the Maya ref already setup the layout.
- Create new class for Maya ref relative UI.
- Make the description not collapsable.
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 28, 2023
@seando-adsk seando-adsk merged commit 7a4d6c0 into dev Jul 31, 2023
12 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-256/relative-maya-ref branch July 31, 2023 13:47
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.

4 participants