Hello !
I do a script for import a animation in unreal engine but the parameter FbxImportUI.import_mesh does not work When I run the script it import the animation and the mesh but I want import only the animation, the mesh already exists in another folder.
You can do it if the skeleton already exists it was enough to select the skeleton and uncheck import mesh. (Like in the picture)
I do the same manipulation with python but it does not work
I was facing the same issue as, but your solution doesn’t fix my problem.
I’m trying to import an FBX containing nothing but an animated cylinder.
The corresponding Skeleton, SkeletalMesh and Material have already been imported elsewhere.
Importing the FBX manually with these settings is giving the expected result : just an AnimationSequence.
And now here is my code :
options = unreal.FbxImportUI()
# options.automated_import_should_detect_type = False
options.original_import_type = unreal.FBXImportType.FBXIT_ANIMATION
options.import_animations = True
options.create_physics_asset = False
options.import_mesh = False
options.import_rigid_mesh = False
options.import_materials = False
options.import_textures = False
options.import_as_skeletal = False
options.skeleton = unreal.load_asset(skeleton_path)
return options
The second line (options.automated_import_should_detect_type = False) is giving a StaticMesh.
If I comment or remove it, the import gives a SkeletalMesh + an AnimationSequence, which is better, but I still want to get rid of this SkeletalMesh and I can’t manage to only get the AnimationSequence.
I’ve tried using set_editor_property rather than the direct parameters but it doesn’t change anything.
Thank you for all your replies, I had more or less the same problem.
None of these solutions worked for me (I’m working in Unreal 5.2 now),
and I keep getting this error:
FBXImport: Warning: Mesh [Geometry have no name] in the fbx file is not reference by any hierarchy node.
FBXImport: Error: Import failed.