File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ proc unityExport(int $exportAnim){
275
275
276
276
string $unitySetContents[] = `listConnections $unitySet`;
277
277
278
+ string $animatedObjectSet = "";
278
279
if($exportAnim){
279
280
string $animCurveSelect[] = `ls -typ animCurve`;
280
281
string $animatedTransforms[] = `listConnections -t transform $animCurveSelect`;
@@ -286,6 +287,8 @@ proc unityExport(int $exportAnim){
286
287
string $setAnimatedTransforms[] = `stringArrayIntersector -query $myIntersector`;
287
288
288
289
select -r $setAnimatedTransforms;
290
+ $animatedObjectSet = `sets`;
291
+ select -r -ne $animatedObjectSet;
289
292
}
290
293
291
294
$pathAttr = $UnityFbxFilePathAttr;
@@ -304,6 +307,10 @@ proc unityExport(int $exportAnim){
304
307
$strCmd = "file -force -options \"\" -typ \"FBX export\" -pr -es \"" + $unity_fbx_file_path + "/" + $unity_fbx_file_name + "\"";
305
308
eval $strCmd;
306
309
}
310
+
311
+ if(setExists($animatedObjectSet)){
312
+ delete $animatedObjectSet;
313
+ }
307
314
}
308
315
309
316
// Delete the intersector
You can’t perform that action at this time.
0 commit comments