Skip to content

Commit 9a5d44b

Browse files
committed
move export set name format to variable
1 parent b8a6b08 commit 9a5d44b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/Integrations/Autodesk/maya/scripts/unityCommands.mel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ global string $UnityFbxFilePathAttr = "unityFbxModelFilePath";
33
global string $UnityFbxFileNameAttr = "unityFbxModelFileName";
44
global string $UnityFbxAnimFilePathAttr = "unityFbxAnimFilePath";
55
global string $UnityFbxAnimFileNameAttr = "unityFbxAnimFileName";
6+
global string $UnityExportSetNameFormat = "^1s_UnityExportSet";
67

78
global proc unityRemoveNativeMenuOnLoad(){
89
$removeSendToUnityMenu = `optionVar -q "UnityFbxForMaya_removeSendToUnityMenu"`;
@@ -98,6 +99,7 @@ global proc unityImport(){
9899
global string $UnityFbxFileNameAttr;
99100
global string $UnityFbxAnimFilePathAttr;
100101
global string $UnityFbxAnimFileNameAttr;
102+
global string $UnityExportSetNameFormat;
101103

102104
if(!loadUnityDependencies()){
103105
error("Failed to load Unity dependencies");
@@ -133,7 +135,7 @@ global proc unityImport(){
133135

134136
$nameWithoutExt = match("[^@]+", $nameWithoutExt);
135137
}
136-
$unityExportSet = $nameWithoutExt + "_UnityExportSet";
138+
$unityExportSet = `format -stringArg $nameWithoutExt $UnityExportSetNameFormat`;
137139

138140
// Gather everything that is in the scene
139141
$origItemsInScene = `ls -tr -o -r true`;

0 commit comments

Comments
 (0)