Import Error with Minha Character

Issue #148 resolved
Zack Johnson created an issue

When I try to import a character (Minha by Handspan Studios), I get the following error:

ERROR:
JSON error while reading ascii file
"F:\User\Documents\DAZ 3D\Studio\My Library/data/daz 3d/genesis 8/female/morphs/handspan studios/minha/fhm minha.dsf"
Expecting ',' delimiter: line 4014 column 34 (char 146997)
For details see
'C:\Users\User\Documents\daz_importer_errors.txt'

TRACEBACK:
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\error.py", line 246, in execute
    self.run(context)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\daz.py", line 47, in run
    getMainAsset(self.filepath, context, self)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\main.py", line 63, in getMainAsset
    main = parseAssetFile(struct, toplevel=True)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\files.py", line 270, in parseAssetFile
    return asset.parse(struct)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\files.py", line 132, in parse
    asset = self.parseUrlAsset(mstruct)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\asset.py", line 174, in parseUrlAsset
    asset = self.getTypedAsset(struct["url"], type)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\asset.py", line 153, in getTypedAsset
    asset = self.getAsset(id)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\asset.py", line 110, in getAsset
    return self.getNewAsset(id, ref, strict)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\asset.py", line 121, in getNewAsset
    struct = loadJson(filepath)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\load_json.py", line 70, in loadJson
    reportError(msg, trigger=trigger)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Diffeomorphic-import_daz-60ecaae756f5\error.py", line 128, in reportError
    raise DazError(msg)

Looking at the referenced line 4014 in the file, I see this (line 4 is line 4014 in FHM Minha.dsf):

                                {
                    "output" : "Genesis8Female:/data/DAZ%203D/Genesis%208/Female/Morphs/DAZ%203D/Head/PHMTeethSizeUpper.dsf#PHMTeethSizeUpper?value",
                    "operations" : [
                        { "op" : "push", "url" : "Genesis8Female:#FHM%20Minha?value" },
                        { "op" : "push", "val" : -050.0 },
                        { "op" : "mult" }
                    ]
                },

Comments (5)

  1. Thomas Larsson repo owner

    I wonder if the problem may be -050.0. If you replace it with -50.0, is the error still there?

  2. Log in to comment