JCM value on G9 set to 0 on import

Issue #1228 resolved
Maneki created an issue

G9 comes with a overall JCM controller morph. When daz importer imports JCMs this controller is set to 0 as standard, which means the JCMs don’t take effect immediatly like they did with older generations. This could end up a bit confusing for some people.

Comments (12)

  1. Alessandro Padovani

    This morph has a default 100% value in daz studio. As a general fix, may be the plugin could read the default values and use them.

  2. Maneki reporter

    Upping this quality of life change once more. I would probably do the same change to FACs details because when someone imports them I’d assume they want to use them and a 0 value for the main controller could cause confusion at first.

  3. Alessandro Padovani

    daz studio 4.21.0.5, blender 3.4.0, diffeomorphic 1.7.0.1332

    As for commit 7c2d2b0 I get an error to import a standard G9.

    Loading C:\Users\Alessandro\Documents\DAZ 3D\Studio\My Library\Scenes\g9.duf
    Parsing data
    Traceback (most recent call last):
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\error.py", line 213, in execute
    self.run(context)
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\main.py", line 229, in run
    self.loadDazFile(filepath, context)
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\main.py", line 136, in loadDazFile
    main = parseAssetFile(struct, toplevel=True)
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\files.py", line 289, in parseAssetFile
    return asset.parse(struct)
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\files.py", line 143, in parse
    asset = self.parseUrlAsset(mstruct)
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\asset.py", line 157, in parseUrlAsset
    asset.update(struct)
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\modifier.py", line 328, in update
    self.setType()
    File "C:\Users\Alessandro\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\import_daz\modifier.py", line 317, in setType
    self.value = float(self.value)
    ValueError: could not convert string to float: '/data/Daz 3D/Genesis 9/Base/Tools/Utilities/Load Projection Templates.dse'

  4. Alessandro Padovani

    Commit a3ab0a3 works great here thank you Thomas for the nice improvement. If nobody has anything to add we can mark as resolved.

  5. Maneki reporter

    It works for the JCMs now but the imported FACs details controller still gets loaded in with 0. I assume the way it works now is importing morph values already set in Daz and since FACs details is 0 there it’s also 0 after import in Blender?
    If it’s intended to keep it that way I’ve nothing to add. Thank you.

  6. Alessandro Padovani

    Yes the default value for “facs detail” is zero, meaning that you have to activate it by hand in daz studio and do the same in blender. It’s wasn’t so for “base correctives“ that’s 1 by default. Now the default values are imported same as daz.

  7. Log in to comment