Announcement

Collapse
No announcement yet.

Importing assets into Unreal 4.20 using python

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    All my tests were in 4.21, but everything looks the same as 4.20 to me
    Have An Awesome And Productive Day
    Alex, Youtube Tutorials

    Comment


      #17
      I thought I would give an update...I managed to suppress the import dialog when importing into scene by modifying the FbxSceneImportFactory.cpp by basically not showing the window and adding the import options in the same cpp (for now).

      My changes are currently hard coded (setting import parameters in code instead of an external JSON) and not fancy at all, but it does the job for me, at the moment, having an automatic import without user interaction.

      Comment


        #18
        has anyone else found that when importing an animation with this method, even if "import_mesh" is set to False, the mesh is still imported (if there was a mesh in the FBX of course)? I'm seeing this consistently.

        Comment


          #19
          Originally posted by addisonbath View Post
          has anyone else found that when importing an animation with this method, even if "import_mesh" is set to False, the mesh is still imported (if there was a mesh in the FBX of course)? I'm seeing this consistently.
          I'm having the same (or a very similar) issue where every time I import animation it brings with it a skeletal mesh. I have set both "import_mesh" and "import_as_skeletal" to False in the import options, but it still happens. For the time being I've got around it by writing some extra code that deletes the new skeletal mesh after import. It's not ideal but it's the best I've been able to come up with so far.

          Also, my code specifies I want to apply my imported animation to a particular skeletal mesh in my project. Yet on import the animation is instead connected to the new skeletal mesh that gets brought in with the animation. But as soon as the imported skeletal mesh gets deleted (with code or manually) the animation then connects to the "correct" skeletal mesh.
          Last edited by Code_Goblin; 03-07-2019, 06:19 AM.

          Comment

          Working...
          X