morphs for body and genital are twisted

Issue #164 closed
sc created an issue

Hi,

First of all thank you for this awesome plugin, drop your patreon link in the main page so we can donate.

I’m having troubles with morphs, both body and genitals, they don’t apply correctly and they show up twisted, im assuming it is a vertex order problem, but i’m not sure about it. Is this a bug or i’m using it incorrectly?

I wanted to make a pull request to fix the transfer morphs button, because it doesn’t work with blender 2.91 but pull requests are private so i drop the fix here

File : transfer.py

line 33 import version variable

version = bpy.app.version

Line 171

From this

bpy.ops.object.modifier_apply(apply_as='DATA', modifier=mod.name)

To this

  if version >= (2, 90, 0):
       bpy.ops.object.modifier_apply(modifier=mod.name)  
  else:    
       bpy.ops.object.modifier_apply(apply_as='DATA', modifier=mod.name)

You should consider github for the community, it will take this plugin to another level.

Thank you

Comments (8)

  1. sc reporter

    So i digged a little bit into this problem and it seems like it is a vertex order problem indeed, i found a workaround that is a bit tedious but seems to work.

    In case someone is looking for the solution, you need to split the character and the genitals, save them separately on daz and run diffeo script for both files then import it back to blender and parent the genital to the character. Now it’s all good you can import morphs for both body parts and use the transfer other morphs button.

  2. Alessandro Padovani

    Blender betas are not supported, including 2.91. The reason is that the blender team has the bad habit to make multiple api changes especially in betas, that doesn’t make life easy for the plugin developers. This is also why they go for LTS now for professional production. That grants a stable api.

    I guess Thomas will support 2.9 once it’s itself in LTS. As the other plugin developers may tend to do. This is just my opinion though Thomas may very well decide otherwise.

  3. Thomas Larsson repo owner

    Should work now. The fix was a bit more complicated, because the modifier_apply operator appears in more places. According to the release notes applying as shape is now done with a new operator modifier_apply_as_shapekey

  4. sc reporter

    is it working for both versions 2.83 and 2.90 ?

    Traceback (most recent call last):
      File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\modules\addon_utils.py", line 351, in enable
        mod = __import__(module_name)
      File "C:\Users\asus\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-ffadc3108abc\__init__.py", line 80, in <module>
        importModules()
      File "C:\Users\asus\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-ffadc3108abc\__init__.py", line 76, in importModules
        mod = importlib.import_module("." + modname, anchor)
      File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "C:\Users\asus\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-ffadc3108abc\morphing.py", line 1981, in <module>
        DAZ_OT_DeleteLipsync,
    NameError: name 'DAZ_OT_DeleteLipsync' is not defined
    

  5. Thomas Larsson repo owner

    Sorry, I removed an unused button but didn’t delete its registration. Fixed now.

  6. Log in to comment