I was importing a big DAZ city and I got all these errors they appeared to be related to just your add on...

Issue #1936 invalid
Joe Morris @ FAST Animation Studio Toolz created an issue

Not sure if it's something else in my code but I don't think so it didn't really mention anything about my functionality… That I used to call the E Easy Import DAZ function… I included my blender file i'll send the DAZ files if you'd like to see them tomorrow not sure how to send those…. Best Regards!

.

https://drive.google.com/drive/folders/1Jo1DiHx0jh93CAirAaNV02ZJCQf491wm?usp=sharing link to .blend

Parsing data
Preprocessing...
Building objects...
Vertex number mismatch.
Expected mesh with 1024 UV vertices
but geometry-3 has 1024 UV vertices.
Invalid mesh "geometry-86". Correcting.
Protected image: chb_plamp-light
Protected image: chb_MetalGalvanized_z
Protected image: chb_plamp-light
Protected image: chb_MetalGalvanized_z
Protected image: chb_plamp-light
Protected image: chb_MetalGalvanized_z
Protected image: chb_plamp-light
Protected image: chb_MetalGalvanized_z
Protected image: chb_MetalGalvanized_z
Protected image: chb_plamp-light
Protected image: chb_MetalGalvanized_z
Protected image: chb_MetalGalvanized_z
Protected image: chb_MetalGalvanized_z
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: cck_metal_smoth02
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: cck_metal_smoth02
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: chb_metal_seam03-spec
Protected image: cck_metal_smoth02
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: chb_metal_seam03-spec
Protected image: titanium-texture_v_low-spec
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: chb_metal_seam03-spec
Protected image: cck_metal_smoth02
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: chb_metal_seam03-spec
Protected image: cck_metal_smoth02
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: titanium-texture_v_low-spec
Protected image: chs_metal_smoth
Protected image: chb_metal_seam03-spec
Protected image: Grass-XL-001-spec
File "C:/Users/W/AppData/Roaming/Blender Foundation/Blender/4.0/scripts/addons/FAST/daz_studio_save/CTHK.duf" loaded in 23.651 seconds
WARN (bpy.rna): C:\Users\blender\git\blender-v400\blender.git\source\blender\python\intern\bpy_rna.cc:1349 pyrna_enum_to_py: current value '0' matches no enum in 'Scene', 'Scene', 'DazMorphCatsContent'
WARN (bpy.rna): C:\Users\blender\git\blender-v400\blender.git\source\blender\python\intern\bpy_rna.cc:1349 pyrna_enum_to_py: current value '0' matches no enum in 'Scene', 'Scene', 'DazMorphCatsContent'

Invalid meshes found and corrected.
Importing morphs may not work:
  geometry-86

Merge materials
Apply transforms
Transfer to clothes
Transfer to face meshes
File  loaded in 34.095 seconds
Traceback (most recent call last):
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\figure.py", line 991, in run
    rig.DazLocLocks = False
AttributeError: 'NoneType' object has no attribute 'DazLocLocks'
Error: Python: Traceback (most recent call last):
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\figure.py", line 991, in run
    rig.DazLocLocks = False
AttributeError: 'NoneType' object has no attribute 'DazLocLocks'
Location: C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py:109

Error Encountered:
 Traceback (most recent call last):
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\FAST\fast_operators.py", line 14217, in execute
    bpy.ops.daz.disable_locks_limits()
  File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
  File "C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\import_daz\figure.py", line 991, in run
    rig.DazLocLocks = False
AttributeError: 'NoneType' object has no attribute 'DazLocLocks'
Location: C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py:109


Settings file C:\Users\W\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\FAST\diffeomorphic_settings\temp.json saved

Comments (7)

  1. Thomas Larsson repo owner

    The warnings about protected images are harmless, I think, although I cannot check from here. I will look at the crash when I come back next weekend.

  2. Thomas Larsson repo owner

    OK, the problem is with you code. On line 14217 you call bpy.ops.daz.disable_locks_limits(), but there is no active object. You must make sure that context.object is not None before calling that operator.

    The warnings about protected images are for images that are used both as srgb and non-color textures. An image is first created as srgb, and converted to non-color wiht a gamma node if needed. In a final optimization pass, such texture-gamma pairs are changed to a non-color texture, unless the srgb image is needed elsewhere. Then the image is protected and the gamma node is kept. So the warnings are harmless, and in the last commit they only happen if verbosity >= 3.

  3. Joe Morris @ FAST Animation Studio Toolz reporter

    OK that's what the issue was thank you for pointing it out …. I added that to my code a while back to test something else and I forgot I added that I just noticed that in my file you're right that must have been it... I really appreciate you pointing that out

  4. Joe Morris @ FAST Animation Studio Toolz reporter

    And I forgot what the protected images were about or why I added those too

  5. Joe Morris @ FAST Animation Studio Toolz reporter

    And I apologize I scanned and scanned that error over and over and I do not know why my file pathdidn't jump at me II looked at it over and over and I thought it was a completely DIFFEO related error without any of my code touching it at all …. I really try to make sure I don't send you any errors that could be related to my code

  6. Log in to comment