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-278 - Embed import options in subheadings #3249

Merged
merged 4 commits into from
Jul 31, 2023

Conversation

samuelliu-adsk
Copy link
Collaborator

@samuelliu-adsk samuelliu-adsk commented Jul 27, 2023

  • Embed import options in subheading
  • Change the style from progressive disclosure to Maya style (grey out children options when parent unselected)

@samuelliu-adsk samuelliu-adsk changed the title EMSUSD-278 - Embed import options in subheadings and change cd .. EMSUSD-278 - Embed import options in subheadings Jul 27, 2023
@samuelliu-adsk samuelliu-adsk marked this pull request as ready for review July 27, 2023 18:50
@samuelliu-adsk samuelliu-adsk added the adsk Related to Autodesk plugin label Jul 27, 2023
@samuelliu-adsk
Copy link
Collaborator Author

Preview of the change:
image

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.

Just one minor comment.

@@ -229,24 +229,26 @@ global proc int mayaUsdTranslatorImport (string $parent,
// menuItem -label "Object space";
// menuItem -label "World space";
// optionMenuGrp -e -sl 1 mayaUsdTranslator_CoordSystemOptionMenu;
frameLayout -label `getMayaUsdString("kImportMaterialsLbl")` materialsFrameLayout;
separator -style "none";
checkBoxGrp -label "" -label1 `getMayaUsdString("kImportMaterialsLbl")` -cw 1 $cw1 -value1 1 -ann `getMayaUsdString("kImportMaterialsAnn")` -cc ("mayaUsdTranslatorImport_MaterialsCB") mayaUsdTranslator_MaterialsCheckBox;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what the default is, but I think you should pass the number of checkboxes with -ncb 1 and I don't think you need -label "" as that flag is optional. Same with all the ones below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @seando-adsk , -label "" is actually needed to achieve the alignment. Without -label the option will be aligned to the left as shown below:
image

For -ncb I'm not sure it's necessary.. We didn't use that option before so I think that's more for the case that we have multiple checkboxes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay for the empty label - I didn't realize that.
I checked the code for the checkBoxGrp command and it does indeed default to 1.

@samuelliu-adsk samuelliu-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 d5d84ea into dev Jul 31, 2023
@seando-adsk seando-adsk deleted the samuelliu-adsk/EMSUSD-278/import_subheadings 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 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