character import error when an empty exists in the scene

Issue #141 resolved
Luke Graybill created an issue

Attempting to import a character wearing the Fleet Commander Outfit for G8M results in the following traceback:

Traceback (most recent call last):
  File "C:\Users\killa\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ca9baaeac05e\error.py", line 246, in execute
    self.run(context)
  File "C:\Users\killa\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ca9baaeac05e\daz.py", line 47, in run
    getMainAsset(self.filepath, context, self)
  File "C:\Users\killa\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ca9baaeac05e\main.py", line 100, in getMainAsset
    asset.postbuild(context, inst)
  File "C:\Users\killa\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ca9baaeac05e\node.py", line 637, in postbuild
    inst.parentObject(context, inst.rna)
  File "C:\Users\killa\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ca9baaeac05e\node.py", line 399, in parentObject
    geo.setHideInfo(pgeo)
  File "C:\Users\killa\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Diffeomorphic-import_daz-ca9baaeac05e\geometry.py", line 184, in setHideInfo
    me.DazVertexCount = self.data.vertex_count
AttributeError: 'NoneType' object has no attribute 'vertex_count'

This happens at about 90% during the character import (judging by the strange Blender progress indicator mouse cursor), and then exits the import process with the above traceback showing on the console.

Looking closer, I noticed that there is a suspicious empty left in my Blender scene:

I don’t have any groups defined in Daz for this character, so I kept poking and saw that this product happens to have some sort of mysterious object with no geometry parented to the cape inside of Daz also:

I don’t know what this object is, but I assume it’s being replicated inside Blender during the import and breaking the script since there is no mesh attached to it. Deleting the empty object in Daz then allows me to successfully import the character in Blender.

Not sure if this is a situation you can detect in the import process or not, but thought I’d report it anyhow!

Comments (6)

  1. engetudouiti

    I suppose it seems D-force (DAZ cloth physics) node. But I seldom pray D-force, so I can not confirm (the product link tell me, it work with D-force

  2. Thomas Larsson repo owner

    This particular crash should not happen anymore. DOn’t know if there will be further problems down the line.

    The plugin does not support D-force. All I have found in the duf files are the vertices that are affected by the simulation (typically all of them with weight 1), and that is not very interesting.

  3. Noname

    @Thomas Larsson Maybe it could be viable to add those vertex weights to separate groups so this could be used in blender cloth modifier ?

  4. Alessandro Padovani

    dForce assets can be weightmapped to give some shape to the simulation. May be having the dForce weightmaps in blender can help. It would be nice to have an initial basic or experimental support for dForce since almost all the outfits for G8 are dForced now. I wouldn’t expect an automatic conversion to work though.

    I see some work on this was done then discarded.

  5. engetudouiti

    Though I do not clear remember how to set up d-force, but even though add on can not auto-convert , Remain simulation weight map as group, seems good future request .

  6. Thomas Larsson repo owner

    Influence groups are created if the Influence Groups option is enabled in the global settings. The plugin can also try to setup a simulation, but that is probably best done from scratch since mapping from DS to Blender's simultation engines is non-trivial.

  7. Log in to comment