-
Notifications
You must be signed in to change notification settings - Fork 203
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-121837: Maya Reference: Clean up 'Cache to USD' UI options #2144
MAYA-121837: Maya Reference: Clean up 'Cache to USD' UI options #2144
Conversation
* Two small renaming. * Collapse some sections by default (only for cache). * enable/disable based on radio button selection.
variantSelected = cmds.radioButtonGrp('variantRadioBtn', query=True, select=1) | ||
cmds.rowLayout('usdCacheVariantSetRow', edit=True, enable=variantSelected) | ||
cmds.rowLayout('usdCacheVariantNameRow', edit=True, enable=variantSelected) | ||
cmds.textFieldGrp('primNameText', edit=True, enable=not variantSelected) |
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.
Enable or disable certain sections based on whether the variant or new prim radio button is selected.
register('kCacheMayaRefUsdHierarchy', 'Author Cache File to USD Hierarchy'); | ||
register('kCaptionCacheToUsd', 'Cache to USD') | ||
register('kErrorCacheToUsdFailed', 'Cache to USD failed for "^1s".') | ||
register('kMenuAppend', 'Append') | ||
register('kMenuPayload', 'Payload') | ||
register('kMenuPrepend', 'Prepend') | ||
register('kMenuReference', 'Reference') | ||
register('kOptionAsCompositionArc', 'As Composition Arc:') | ||
register('kOptionAsUSDReference', 'As USD Reference:') |
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.
Couple of minor renaming as per design.
@@ -530,7 +530,7 @@ global proc int mayaUsdTranslatorExport (string $parent, | |||
} | |||
|
|||
if (stringArrayContains("output", $sectionNames)) { | |||
frameLayout -label `getMayaUsdString("kExportFrameOutputLbl")` -collapsable true -collapse false; | |||
frameLayout -label `getMayaUsdString("kExportFrameOutputLbl")` -collapsable true -collapse false outputFrameLayout; |
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.
Gave all these frameLayout's names so that from the "Cache to Usd" I can collapse them.
MAYA-121837: Maya Reference: Clean up 'Cache to USD' UI options