Skip to content

Commit 3c6550a

Browse files
committed
set take to import in import settings
FbxResetImport resets the take to be "No Animation", so if not explicitely set afterwards, animation will not be imported
1 parent 98f5e39 commit 3c6550a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ proc importFile(string $filePathStr){
147147
}
148148

149149
namespace -set $nameWithoutExt;
150-
file -import -type "fbx" -namespace $nameWithoutExt $filePathStr;
150+
file -import -type "FBX" -ignoreVersion -ra true -mergeNamespacesOnClash true -pr -importFrameRate true -importTimeRange "override" $filePathStr;
151151

152152
namespace -set $origNamespace;
153153

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ FBXResetImport;
33
FBXImportAxisConversionEnable -v true;
44
FBXImportCameras -v true;
55
FBXImportLights -v true;
6+
FBXImportSetMayaFrameRate -v true;
7+
8+
FBXImportSetTake -takeIndex -1;
69

710
// Add and update animation
811
FBXImportMode -v merge;

0 commit comments

Comments
 (0)