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-305 Sets Add A Reference as default #3327

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mayaUsd/resources/scripts/mayaUsdLibRegisterStrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def mayaUsdLibRegisterStrings():
register('kCacheMayaRefUsdHierarchy', 'Author Cache File to USD')
register('kCaptionCacheToUsd', 'Cache to USD')
register('kErrorCacheToUsdFailed', 'Cache to USD failed for "^1s".')
register('kMenuPrepend', 'Prepend')
register('kMenuAppend', 'Append')
register('kMenuPayload', 'Payload')
register('kMenuPrepend', 'Prepend (default)')
register('kMenuReference', 'Reference')
register('kOptionAsUSDReference', 'Composition Arc:')
register('kOptionAsUSDReferenceToolTip', '<p>Choose the type of USD Reference composition arc for your Maya Reference:<br><br><b>Payloads</b> are a type of reference. They are recorded, but not traversed in the scene hierarchy. Select this arc if your goal is to manually construct<br>a "working set" that is a subset of an entire scene, in which only parts of the scene are required/loaded. Note: payloads are<br>weaker than direct references in any given LayerStack.<br><br><b>References</b> are general and can be used to compose smaller units of scene description into larger aggregates, building up a namespace that<br>includes the "encapsulated" result of composing the scene description targeted by a reference. Select this arc if your goal is not to unload your<br>references.</p>')
Expand Down
2 changes: 1 addition & 1 deletion lib/mayaUsd/resources/scripts/mayaUsdUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def setUserSelectedUSDDialogFileFilter(fileFilter):

def wantReferenceCompositionArc():
opVarName = "mayaUsd_WantReferenceCompositionArc"
return cmds.optionVar(exists=opVarName) and cmds.optionVar(query=opVarName)
return not cmds.optionVar(exists=opVarName) or cmds.optionVar(query=opVarName)

def saveWantReferenceCompositionArc(want):
opVarName = "mayaUsd_WantReferenceCompositionArc"
Expand Down