-
Notifications
You must be signed in to change notification settings - Fork 202
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
EMSUSD-278 - Embed import options in subheadings #3249
Conversation
samuelliu-adsk
commented
Jul 27, 2023
•
edited
Loading
edited
- Embed import options in subheading
- Change the style from progressive disclosure to Maya style (grey out children options when parent unselected)
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
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?
There was a problem hiding this comment.
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.