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-121837: Maya Reference: Clean up 'Cache to USD' UI options #2144

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

seando-adsk
Copy link
Collaborator

MAYA-121837: Maya Reference: Clean up 'Cache to USD' UI options

  • Two small renaming.
  • Collapse some sections by default (only for cache).
  • enable/disable based on radio button selection.

* Two small renaming.
* Collapse some sections by default (only for cache).
* enable/disable based on radio button selection.
@seando-adsk seando-adsk added the workflows Related to in-context workflows label Feb 25, 2022
Comment on lines +156 to +159
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)
Copy link
Collaborator Author

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:')
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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.

@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Feb 28, 2022
@seando-adsk seando-adsk merged commit 000f152 into dev Feb 28, 2022
@seando-adsk seando-adsk deleted the donnels/MAYA-121837/cleanup_cache_to_usd_options branch February 28, 2022 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants