Import pose error, character scaled up

Issue #47 closed
Noname created an issue

Hello,

Issue is with scale for some of the imported poses.

What I do:

  1. import character
  2. merger rigs (probably doesn’t matter)
  3. select main rig
  4. import Pose

After pose is imported I see warning message:

“Animation loaded but some morphs were missing …“

Character has pose from loaded pose file (AFAIKT) but character scale now it’s incorrect.

Whole model is scaled up (around 1.5 - 2 times larger than original).

Comments (10)

  1. Marija Gajski

    I am having same issue.

    Steps:

    same as Noname did.

    G8, and pose is from orginal daz library default from program.

    I am using win 10.

    This is text of error:

    Traceback (most recent call last):
    File "C:\Users\Korisnik\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import-daz\error.py", line 177, in execute
    self.run(context)
    File "C:\Users\Korisnik\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import-daz\animation.py", line 840, in run
    StandardAnimation.run(self, context)
    File "C:\Users\Korisnik\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import-daz\animation.py", line 768, in run
    "Check results carefully.", warning=True)
    File "C:\Users\Korisnik\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import-daz\error.py", line 68, in init
    bpy.ops.daz.error('INVOKE_DEFAULT')
    File "C:\Users\Korisnik\Downloads\blender-2.83-23bb42a06e28-windows64\blender-2.83-23bb42a06e28-windows64\2.83\scripts\modules\bpy\ops.py", line 199, in call
    ret = op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
    RuntimeError: Error: Traceback (most recent call last):
    File "C:\Users\Korisnik\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\import-daz\error.py", line 52, in invoke
    return wm.invoke_props_dialog(self, width=width, height=height)
    TypeError: WindowManager.invoke_props_dialog(): takes at most 2 arguments, got 3

    location: C:\Users\Korisnik\Downloads\blender-2.83-23bb42a06e28-windows64\blender-2.83-23bb42a06e28-windows64\2.83\scripts\modules\bpy\ops.py:199

    location: <unknown location>:-1

  2. Thomas Larsson repo owner

    I am totally sure this bug was fixed long ago, but somehow it has reappeared. The problem is that the object scale is counted twice: the scale is 1 and the default is 1, so the total object scale = 2. Fixed now, but problems may appear elsewhere.

    Marija, I have not tested Blender 2.83 yet. Your error does not arise in B2.82 and earlier.

  3. Marija Gajski

    In official stable 2.82a it has same behavior, scale of rig gets double amount when I make same steps, but the error sign is different. It does not show error, but it shows missing morphs sign. Here are screenshots for 2.82. Same as Noname says.

    I have download now again add on, remove it and install again. ver. import-daz-v1.4.1-20200227

    In B2.83.13 I have error from previous post.

    In both cases, this is rig outcome.

  4. Thomas Larsson repo owner

    Marija, bugfixes go into the development version, which can be downloaded from https://bitbucket.org/Diffeomorphic/import-daz/downloads/. Stable versions remain unchanged until they are superseded by a new stable version.

    The warning message is quite normal. This pose not only consists of bone rotations, but also of a facial expression built from several morphs. You need to import those morphs first, with the Import Units/Expressions/Visemes buttons in the Morph section. If you have not imported these morphs, they cannot be set.

    That said, sometimes this message nevertheless appears, but not in your case, if I read the very fine print in you picture correctly. Some poses are defined double, via bone rotations but also via body morphs.

    The error message is suppressed if you turn off Import Morphs or Report Missing Morphs in the options that appear with the file selector.

    If the B2.83 error persists when it is officially released, I will look into it. However, sometimes nightly builds introduce new bugs that are removed in the official release.

  5. Noname reporter

    @Thomas Larsson

    Would it be possible to add i.e. checkbox to auto import all morphs referenced in pose file, or even better a pop up window with morph list and checkbox next to each of them and buttons like Cancel / Import without morps / Import with morph ?

    This “strategy” would also be welcomed in other import areas as now it’s sometimes cumbersome to work with this plugin.

  6. Thomas Larsson repo owner

    Noname, auto-loading missing morphs sounds like a good idea. Will check that out.

  7. Noname reporter

    Marking this as resolved. Tested and it works fine now for me and @Marija Gajski .

    @Thomas Larsson

    I watched blender podcast and there is a way to add additional data to blender window. This trick is good to keep "portable" data that are not saved in blend file. This could be good for that issue with mapping verts ids when merging geografs and then importing morphs.

  8. Log in to comment