PyNifly Blender .nif Import via script (Fallout 4)

FORUMS FORUMS Python Help PyNifly Blender .nif Import via script (Fallout 4)

Viewing 0 reply threads
    • #34265

      BlenderUser
      Participant
      Up
      0
      ::

      I want to batch process nif files, using PyNifly addon, I would like to import a .nif through a script without going through the menu manually.

      bpy.ops.import_scene.nifly() is what I got when enabling developer extras but I get an error when trying to import a file.

      Script

      import bpy
      bpy.ops.import_scene.nifly(filepath="E:/Meshes/10mmAmmo.nif")
      

      Error

      Python: Traceback (most recent call last):
      File "\Text", line 2, in <module>
      File "C:\Program Files\Blender Foundation\Blender 3.4\3.4\scripts\modules\bpy\ops.py", line 113, in __call__
      ret = _op_call(self.idname_py(), None, kw)
      RuntimeError: Error: Import of nif failed, see console window for details
Viewing 0 reply threads