Import Pose Library fails to Import Previews

Issue #1956 invalid
John Keyberg created an issue

Blender version: 4.0.2

Diffeomorphic version: 1.7.3.1938

Python: Traceback (most recent call last):
File "C:\Users\fblim\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
self.run(context)
File "C:\Users\fblim\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\animation.py", line 1690, in run
StandardAnimation.run(self, context)
File "C:\Users\fblim\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\animation.py", line 1441, in run
offset,prop = self.getSingleAnimation(filepath, context, offset)
File "C:\Users\fblim\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\animation.py", line 821, in getSingleAnimation
result = self.animateBones(context, nanims, offset, prop, filepath)
File "C:\Users\fblim\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\animation.py", line 1111, in animateBones
self.addToPoseLib(rig, filepath)
File "C:\Users\fblim\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\animation.py", line 1654, in addToPoseLib
bpy.ops.ed.lib_id_load_custom_preview({"id": act}, filepath=previewFile)
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 106, in call
C_exec, C_undo = _BPyOpsSubModOp._parse_args(args)
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 60, in _parse_args
raise ValueError("1-2 args execution context is supported")
ValueError: 1-2 args execution context is supported

Comments (3)

  1. John Keyberg reporter

    If Import Previews is unchecked, the pose assets import normally, but of course without previews. If it is checked, only one pose is imported, and it also has no preview image.

    There is a Blender addon by and experienced python scripter called Gorgious that adds the functionality to batch import previews from images on an external folder that match the names of pose assets. I’m no programmer, but I think that his code might have the solution.

    Here is the addon: https://github.com/Gorgious56/asset_browser_utilities

  2. Log in to comment