-
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
Merged
seando-adsk
merged 1 commit into
dev
from
donnels/MAYA-121837/cleanup_cache_to_usd_options
Feb 28, 2022
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,15 +42,15 @@ def mayaUsdLibRegisterStrings(): | |
register('kButtonNewChildPrim', 'New Child Prim') | ||
register('kCacheFileWillAppear', 'Cache file will appear\non parent prim:') | ||
register('kCacheMayaRefCache', 'Cache'); | ||
register('kCacheMayaRefOptions', 'Cache Options'); | ||
register('kCacheMayaRefOptions', 'Cache File Options'); | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Couple of minor renaming as per design. |
||
register('kOptionListEditedAs', 'List Edited As') | ||
register('kTextDefineIn', 'Define in:') | ||
register('kTextVariant', 'Variant') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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. |
||
separator -style "none"; | ||
|
||
optionMenuGrp -l `getMayaUsdString("kExportDefaultFormatLbl")` -annotation `getMayaUsdString("kExportDefaultFormatAnn")` -statusBarMessage `getMayaUsdString("kExportDefaultFormatStatus")` defaultUSDFormatPopup; | ||
|
@@ -549,7 +549,7 @@ global proc int mayaUsdTranslatorExport (string $parent, | |
} | ||
|
||
if (stringArrayContains("geometry", $sectionNames)) { | ||
frameLayout -label `getMayaUsdString("kExportFrameGeometryLbl")` -collapsable true -collapse false; | ||
frameLayout -label `getMayaUsdString("kExportFrameGeometryLbl")` -collapsable true -collapse false geometryFrameLayout; | ||
separator -style "none"; | ||
optionMenuGrp -l `getMayaUsdString("kExportSubdMethodLbl")` -annotation `getMayaUsdString("kExportSubdMethodAnn")` defaultMeshSchemePopup; | ||
menuItem -l `getMayaUsdString("kExportSubdMethodCCLbl")` -ann "catmullClark"; | ||
|
@@ -580,7 +580,7 @@ global proc int mayaUsdTranslatorExport (string $parent, | |
} | ||
|
||
if (stringArrayContains("materials", $sectionNames)) { | ||
frameLayout -label `getMayaUsdString("kExportFrameMaterialsLbl")` -collapsable true -collapse false -ann `getMayaUsdString("kExportMaterialsAnn")`; | ||
frameLayout -label `getMayaUsdString("kExportFrameMaterialsLbl")` -collapsable true -collapse false -ann `getMayaUsdString("kExportMaterialsAnn")` materialsFrameLayout; | ||
separator -style "none"; | ||
|
||
string $conversions[] = `mayaUSDListShadingModes -export -useRegistryOnly`; | ||
|
@@ -600,7 +600,7 @@ global proc int mayaUsdTranslatorExport (string $parent, | |
|
||
if (stringArrayContains("animation", $sectionNames)) { | ||
frameLayout -label `getMayaUsdString("kExportFrameAnimationLbl")` -collapsable true -collapse false | ||
-expandCommand("mayaUsdTranslatorExport_AnimationFrameLayoutExpandCB"); | ||
-expandCommand("mayaUsdTranslatorExport_AnimationFrameLayoutExpandCB") animationFrameLayout; | ||
separator -style "none"; | ||
|
||
if (stringArrayContains("animation-data", $sectionNames)) { | ||
|
@@ -630,7 +630,7 @@ global proc int mayaUsdTranslatorExport (string $parent, | |
} | ||
|
||
if (stringArrayContains("advanced", $sectionNames)) { | ||
frameLayout -label `getMayaUsdString("kExportFrameAdvancedLbl")` -collapsable true -collapse true; | ||
frameLayout -label `getMayaUsdString("kExportFrameAdvancedLbl")` -collapsable true -collapse true advancedFrameLayout; | ||
separator -style "none"; | ||
|
||
checkBoxGrp -l `getMayaUsdString("kExportVisibilityLbl")` -annotation `getMayaUsdString("kExportVisibilityAnn")` exportVisibilityCheckBox; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.