GoB icon indicating copy to clipboard operation
GoB copied to clipboard

Unable to export to Zbrush if object has face sets and certain modifiers

Open HappyHeads opened this issue 3 months ago • 0 comments

If I try to export a mesh from Blender that has face sets and a modifier that makes new triangles like mirror, subdivide, multires, basically anything from the generate tab, then it throws an error and the mesh is not exported.

Python: Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\user_default\gob\ui.py", line 113, in invoke
    bpy.ops.scene.gob_export(as_tool=as_tool)
  File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\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\User\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\user_default\gob\gob_export.py", line 684, in execute
    self.exportGoZ(context.scene, obj, f'{PATH_PROJECT}')
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\user_default\gob\gob_export.py", line 354, in exportGoZ
    obj.data.attributes['.sculpt_face_set'].data.foreach_get('value', face_set_data)
RuntimeError: internal error setting the array
Location: C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\modules\bpy\ops.py:109

If export settings are changed to generate polygroups from vertex groups or materials instead, the mesh exports fine.

HappyHeads avatar Sep 30 '25 04:09 HappyHeads