File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ global string $UnityFbxFilePathAttr = "unityFbxModelFilePath";
3
3
global string $UnityFbxFileNameAttr = "unityFbxModelFileName";
4
4
global string $UnityFbxAnimFilePathAttr = "unityFbxAnimFilePath";
5
5
global string $UnityFbxAnimFileNameAttr = "unityFbxAnimFileName";
6
+ global string $UnityExportSetNameFormat = "^1s_UnityExportSet";
6
7
7
8
global proc unityRemoveNativeMenuOnLoad(){
8
9
$removeSendToUnityMenu = `optionVar -q "UnityFbxForMaya_removeSendToUnityMenu"`;
@@ -98,6 +99,7 @@ global proc unityImport(){
98
99
global string $UnityFbxFileNameAttr;
99
100
global string $UnityFbxAnimFilePathAttr;
100
101
global string $UnityFbxAnimFileNameAttr;
102
+ global string $UnityExportSetNameFormat;
101
103
102
104
if(!loadUnityDependencies()){
103
105
error("Failed to load Unity dependencies");
@@ -133,7 +135,7 @@ global proc unityImport(){
133
135
134
136
$nameWithoutExt = match("[^@]+", $nameWithoutExt);
135
137
}
136
- $unityExportSet = $nameWithoutExt + "_UnityExportSet" ;
138
+ $unityExportSet = `format -stringArg $nameWithoutExt $UnityExportSetNameFormat` ;
137
139
138
140
// Gather everything that is in the scene
139
141
$origItemsInScene = `ls -tr -o -r true`;
You can’t perform that action at this time.
0 commit comments