ImportAssets Commandlet for Animation Sequence

Hello,

I’m currently researching commandlets to import animation sequences. I could use that to re-import a lot of animation overnight. As a batch process.

I have tried this for static meshes:

{
     "ImportGroups": [
      {
        "FileNames": [
          "path\to\fbx\file\test.fbx"
        ],
        "bReplaceExisting": "true",
        "DestinationPath": "/Game/Geometry/Test/",
        "FactoryName": "FbxFactory",
        "ImportSettings": {
          "bImportMesh": 1,
          "bConvertSceneUnit": 1,
          "bConvertScene": 1,
          "bCombineMeshes": 0,
          "bImportTextures": 0,
          "bImportMaterials": 0,
          "AnimSequenceImportData": {
            "bImportMeshesInBoneHierarchy": 1,
            "bDeleteExistingMorphTargetCurves": 1
          },
          "SkeletalMeshImportData": {},
          "TextureImportData": {},
          "StaticMeshImportData": {
            "bRemoveDegenerates": 1,
            "bAutoGenerateCollision": 1
          }
        }
      }
     ]
 }

Works great for static meshes, but when I change “FbxFactory” to “AnimSequenceFactory” and try an animation sequence fbx it fails.

I can’t find any documentation about this. So all the help is welcome!
Is there no way to just call a re-import on an existing asset? I could also research the “auto reimport” feature.

Thanks!

[2018.03.18-01.16.05:494][  0]LogAutomatedImport: Importing group AutomatedAssetImportData_1
[2018.03.18-01.16.05:500][  0]LogFactory: FactoryCreateFile: StaticMesh with FbxFactory (0 0 //test//test_animation.fbx)
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: GlobalSettings, ItemCount : 1
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: AnimationStack, ItemCount : 1
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: AnimationLayer, ItemCount : 1
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: NodeAttribute, ItemCount : 195
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: Model, ItemCount : 197
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: Geometry, ItemCount : 2
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: AnimationCurveNode, ItemCount : 734
[2018.03.18-01.16.05:510][  0]LogFbx: ItemName: AnimationCurve, ItemCount : 940
[2018.03.18-01.16.05:513][  0]LogFbx: Loading FBX Scene from path//test_animation.fbx
[2018.03.18-01.16.05:600][  0]LogFbx: FBX Scene Loaded Succesfully
[2018.03.18-01.16.05:613][  0]LogFbx: Loading FBX Scene from path//scenes//test//test_animation.fbx
[2018.03.18-01.16.05:692][  0]LogFbx: FBX Scene Loaded Succesfully
[2018.03.18-01.16.05:709][  0]FBXImport: Warning: Mesh [Geometry have no name] in the fbx file is not reference by any hierarchy node. 
[2018.03.18-01.16.05:710][  0]FBXImport: Warning: Mesh [Geometry have no name] in the fbx file is not reference by any hierarchy node. 
[2018.03.18-01.16.05:710][  0]FBXImport: Error: Import failed. 
[2018.03.18-01.16.05:711][  0]LogAssetTools: Warning: Failed to import 'path//scenes//test//test_animation.fbx'. Failed to create asset '/Game/Geometry/Test/test_animation'.
Please see Output Log for details.
[2018.03.18-01.16.05:711][  0]LogAutomatedImport: Error: Failed to import all assets in group AutomatedAssetImportData_1
[2018.03.18-01.16.05:711][  0]LogAutomatedImport: Error: Could not import all groups
[2018.03.18-01.16.05:711][  0]LogInit: Display: 
[2018.03.18-01.16.05:711][  0]LogInit: Display: Warning/Error Summary (Unique only)
[2018.03.18-01.16.05:711][  0]LogInit: Display: -----------------------------------
[2018.03.18-01.16.05:712][  0]LogInit: Display: FBXImport: Error: Import failed. 
[2018.03.18-01.16.05:712][  0]LogInit: Display: LogAutomatedImport: Error: Failed to import all assets in group AutomatedAssetImportData_1
[2018.03.18-01.16.05:712][  0]LogInit: Display: LogAutomatedImport: Error: Could not import all groups
[2018.03.18-01.16.05:712][  0]LogInit: Display: FBXImport: Warning: Mesh [Geometry have no name] in the fbx file is not reference by any hierarchy node. 
[2018.03.18-01.16.05:712][  0]LogInit: Display: LogAssetTools: Warning: Failed to import path//scenes//test//test_animation.fbx'. Failed to create asset '/Game/Geometry/Test/test_animation'.
Please see Output Log for details.
[2018.03.18-01.16.05:712][  0]LogInit: Display: 
[2018.03.18-01.16.05:712][  0]LogInit: Display: Failure - 3 error(s), 3 warning(s)
[2018.03.18-01.16.05:713][  0]LogInit: Display:

Was able to do the same thing using the re-import feature by temporary overriding the project config file for one workstation using a bat script. Probably safer as well. Still interested to find a commandline solution for this. Will dig deeper by looking at https://github.com/EpicGames/UnrealEngine/blob/8e4560b8c22b309e73ff0ce90377742c3dfe13cc/Engine/Source/Editor/UnrealEd/Private/Fbx/FbxFactory.cpp