Can't import any dbz file with latest version

Issue #354 resolved
ByteC created an issue

Hi Thomas,

after installing <Diffeomorphic-import_daz-a42c4712c570> any import fails, even with actual and older .duf containing

Genesis 8.0.

V8.1 can be imported.

No problems if I use Diffeomorphic-import_daz-5149e2641c5b.

Blender 2.91.2

Any ideas?

A Big Sunday Cheers,

Peter

Loading d:\00 - 3D Programme\Daz3D\Content\00-ToBlender\T08.duf
Parsing data
Python: Traceback (most recent call last):
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\error.py", line 247, in execute
self.run(context)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\daz.py", line 47, in run
getMainAsset(self.filepath, context, self)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\main.py", line 66, in getMainAsset
main = parseAssetFile(struct, toplevel=True)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\files.py", line 334, in parseAssetFile
return asset.parse(struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\files.py", line 135, in parse
asset = self.parseUrlAsset(mstruct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\asset.py", line 167, in parseUrlAsset
asset = self.getTypedAsset(struct["url"], type)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\asset.py", line 146, in getTypedAsset
asset = self.getAsset(id)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\asset.py", line 103, in getAsset
return self.getNewAsset(id, ref, strict)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\asset.py", line 115, in getNewAsset
file = parseAssetFile(struct, fileref=fileref)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\files.py", line 334, in parseAssetFile
return asset.parse(struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\files.py", line 87, in parse
asset = parseModifierAsset(self, mstruct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\modifier.py", line 50, in parseModifierAsset
return asset.parseTypedAsset(struct, Morph)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\files.py", line 298, in parseTypedAsset
asset.parse(struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\modifier.py", line 685, in parse
FormulaAsset.parse(self, struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\modifier.py", line 643, in parse
ChannelAsset.parse(self, struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\modifier.py", line 241, in parse
Modifier.parse(self, struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\modifier.py", line 96, in parse
Asset.parse(self, struct)
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\asset.py", line 357, in parse
self.parseSource(struct["source"])
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\asset.py", line 372, in parseSource
"Asset: %s\n" % self +
File "C:\Users\Peter\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-a42c4712c570\modifier.py", line 681, in repr
return ("<Morph %s %f %d %d>" % (self.name, self.value, self.vertex_count, len(self.deltas)))
AttributeError: 'Morph' object has no attribute 'deltas'

location: <unknown location>:-1

Comments (17)

  1. Alessandro Padovani

    seems to work fine here .. if you used auto-update then you may try with manual install instead

  2. ByteC reporter

    Hi Alessandro, nope, I always do this by hand. Before I install the new one, I remove the old version, like with Hops or BC. As mentioned, if I use

    an older version, everything works as expected in 2.91.2 - I’m using the standard export script, not the hd script, Genesis 8 Base, not Genesis 8.1/Victoria8.1

    Checked against 8.1 - 8.1 is working, 8.0 causes an error. Could you pls check against any 8.0 figure?

  3. ByteC reporter

    Made a new scene from scratch, without any geografts, G 8.0, no problems. I will try to find out what causes this problem by removing part by part.

  4. ByteC reporter

    Strange, even after I have removed all geografts, I’m not able this figure with a42c4712c570. I can import the figure w/o any problems with older versions of daz importer.

    Sadly, the import error log isn’t built.

  5. Thomas Larsson repo owner

    The crash should not happen anymore, but I would appreciate if you could share the duf file that caused it.

  6. ByteC reporter

    Hi Thomas, Thank you for the update. The problem persists, the figure is not loadable, but a log file has been written.

  7. Thomas Larsson repo owner

    That the log file is created is sort of the intended behaviour. If you reduce verbosity to 2, the plugin should be silent, but I’m unsure what happens later on.

    What happens is that you have made a local modification to morph. Normally the duf file just contains a pointer to other files, but if something has been modified there is a local copy plus a pointer to the original data. The plugin checks that the local and original assets have the same type, because otherwise something is wrong. However,apparently the local asset can also be a subtype of the original; in your case a morph is a special case of a modifier, hence the line modifier != morph. The code has now been change to accept subtypes as well, and your file should load correctly.

  8. Thomas Larsson repo owner

    No, after looking at your log file again the previous fix will not work. The latest commit should silent the problem but it does not explain it.

  9. Thomas Larsson repo owner

    After some more investigations I think that the latest commit may actually solve the problem.

  10. ByteC reporter

    Thank you Thomas, problem solved! And thank you Alessandro for cross checking. By the way, I haven’t changed any of these morphs, I simply use custom paths to have a more organized sdd.

  11. Log in to comment