Skip to content

Issue with the conflict between import_daz and node_pie plugins #62

Description

@ZHAOZIHAN00

I encountered an error when using the Diffeomorphic/import_daz plugin to add a character and then adding nodes with node_pie:
Python: Traceback (most recent call last): File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\npie_btypes.py", line 701, in invoke return super().invoke(context, event) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\operators\op_call_link_drag.py", line 360, in invoke bpy.ops.node_pie.call_node_pie("INVOKE_DEFAULT") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ RuntimeError: 错误: Python: Traceback (most recent call last): File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\npie_btypes.py", line 703, in invoke return self.execute(context) ~~~~~~~~~~~~^^^^^^^^^ File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\npie_btypes.py", line 722, in execute ret = super().execute(context) File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\operators\op_call_node_pie.py", line 25, in execute categories, cat_layout = load_custom_nodes_info(context.area.spaces.active.tree_type, context) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\npie_node_def_file.py", line 297, in load_custom_nodes_info bl_node_types = get_all_node_types() File "C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\npie_helpers.py", line 98, in get_all_node_types types = {getattr(bpy.types, t) for t in dir(bpy.types)} ~~~~~~~^^^^^^^^^^^^^^ RuntimeError: bpy.types.DAZ_UL_CustomMorphs subtype could not be generated, this is a bug! 位置: C:\Users\zhaoz\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\user_default\NodePie\node_pie\operators\op_call_link_drag.py:360
I removed the following line from the "npie_helpers.py" file on line 98:types = {getattr(bpy.types, t) for t in dir(bpy.types)}The code has restored normal operation, but I don't fully understand the code and am unsure if this solution is reasonable. However, I haven't encountered any other issues during my usage, so I hope you can check and fix this problem.

Image

**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions