Skip to content

Commit

Permalink
Merge pull request #3959 from Autodesk/bailp/EMSUSD-1504/reload-plugi…
Browse files Browse the repository at this point in the history
…n-warnings

EMSUSD-1504 prevent warnings when reloading the plugin
  • Loading branch information
seando-adsk authored Oct 17, 2024
2 parents 49224f5 + a4af8c7 commit 3e504e7
Show file tree
Hide file tree
Showing 7 changed files with 541 additions and 507 deletions.
2 changes: 1 addition & 1 deletion lib/mayaUsd/fileio/doc/How-to-add-new-option.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Usually, you will need to modify these places:
- wrapPrimReader.cpp:
- Expose the option to Python

- mayaUSDRegisterStrings.mel:
- mayaUSDRegisterStrings.py:
Add the new UI labels

- mayaUsdTranslatorImport.mel: (or mayaUsdTranslatorExport.mel)
Expand Down
38 changes: 0 additions & 38 deletions lib/mayaUsd/resources/scripts/mayaUsdLibRegisterStrings.mel
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,8 @@
// limitations under the License.
//

proc register(string $key, string $value)
{
registerPluginResource("mayaUsdLib", $key, $value);
}

global proc string getMayaUsdLibString(string $key)
{
return getPluginResource("mayaUsdLib", $key);
}

global proc mayaUsdLibRegisterStrings()
{
// mayaUsdAddMayaReference.mel
register("kMayaRefDescription", "Description");
register("kMayaRefCacheToUSDDescription1", "<p>Export your Maya Reference to a USD cache file on disk. This workflow enables you to work with Maya data in USD scenes and then export them to a USD cache and author it back into your current USD hierarchy. Use the Cache Options section to build out the scope of your output.</p>");
register("kMayaRefCacheToUSDDescription2", "<p><b>Note:</b> When authoring the exported USD cache back into a current USD hierarchy, an edit will be made on the targeted layer. The cache file will be added as a USD reference, defined either in a variant or prim.</p>");
register("kMayaRefAddToUSDDescription1", "<p>Add a Maya reference to a USD prim to enable working with original Maya data in your USD scene. Select a Maya scene file to add as a reference. Once a Maya reference file is added, a Maya transform node will appear in the Outliner at your selected prim, containing your newly added Maya reference. Use this dialog to build out the scope of your Maya reference.</p>");
register("kMayaRefAddToUSDDescription2", "<p><b>Tip:</b> Define your Maya Reference in a USD variant. This will enable your prim to have 2 variants you can switch between in the Outliner; the Maya reference and its USD cache.</p>");
register("kMayaRefUsdOptions", "Author Maya Reference File to USD");
register("kMayaRefMayaRefPrimName", "Maya Reference Prim Name:");
register("kMayaRefGroup", "Group");
register("kMayaRefPrimName", "Prim Name:");
register("kMayaRefPrimType", "Prim Type:");
register("kMayaRefPrimKind", "Prim Kind:");
register("kMayaRefDefineInVariant", "Define in Variant");
register("kMayaRefDefineInVariantAnn", "Select this checkbox to define the Maya Reference in a USD variant. This will enable your prim to have 2 variants you can switch between in the Outliner; the Maya reference and its USD cache.");
register("kMayaRefVariantSetName", "Variant Set Name:");
register("kMayaRefVariantName", "Variant Name:");
register("kMayaRefVariantOnPrim", "Variant will be on prim:");
register("kMayaRefEditAsMayaData", "Edit as Maya Data");
register("kMayaRefEditAsMayaDataAnn", "Select this checkbox to enable editing the MayaReference prim as a Maya Reference.");
register("kMayaRefOptions", "Maya Reference Options");
register("kMayaRefCreateNew", "Create New");
register("kMayaRefAddToPrim", "Add Maya Reference to Prim");
register("kMayaRefReference", "Reference");

// Used in multiple places.
register("kAllUsdFiles", "All USD Files");
register("kUsdFiles", "USD Files");
register("kUsdASCIIFiles", "USD ASCII Files");
register("kUsdBinaryFiles", "USD Binary Files");
register("kUsdCompressedFiles", "USD Compressed Files");
}
Loading

0 comments on commit 3e504e7

Please sign in to comment.