JoseConseco / GoB

Fork of original GoB script (I just added some fixes)
GNU General Public License v3.0
637 stars 77 forks source link

Exporting with polygroups using materials doesn't work #492

Open mkibria opened 4 days ago

mkibria commented 4 days ago

When trying to export the following errors and messages come up

Python: Traceback (most recent call last): File "C:\Users\mahee\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gob\ui.py", line 102, in invoke bpy.ops.scene.gob_export(as_tool=as_tool) File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\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\mahee\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gob\gob_export.py", line 636, in execute self.exportGoZ(context.scene, obj, f'{PATH_PROJECT}') File "C:\Users\mahee\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gob\gob_export.py", line 393, in exportGoZ color = geometry.random_color() ^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'bl_ext.user_default.gob.geometry' has no attribute 'random_color' Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109