Takanu / Capsule

(Blender 4.1) Universal batch export manager
https://takanu.itch.io/capsule-blender-addon
GNU General Public License v3.0
200 stars 13 forks source link

TRANSFORM_OT_translate.use_proportional_edit expected True/False or 0/1, not str #65

Open Flynsarmy opened 1 month ago

Flynsarmy commented 1 month ago

Blender 4.2.2 LTS, Capsule 1.4.2.

When exporting a mesh with non-1 scale I get the following error:

Error: Python: Traceback (most recent call last):
  File "C:\path\to\Capsule\export_operators.py", line 169, in execute
    PerformExportTask(context, export_task, export_stats)
  File "C:\path\to\Capsule\export_operators.py", line 372, in PerformExportTask
    export_task['armature_record'] = record_utils.MuteArmatureConstraints(context)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\path\to\Capsule\tk_utils\record.py", line 357, in MuteArmatureConstraints
    object_transform.MoveBone(item, bone, context, entry['true_location'])
  File "C:\path\to\Capsule\tk_utils\object_transform.py", line 197, in MoveBone
    bpy.ops.transform.translate(
  File "C:\path\to\Blender\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Converting py args to operator properties: TRANSFORM_OT_translate.use_proportional_edit expected True/False or 0/1, not str

The fix is relatively simple. On line 202 change use_proportional_edit= 'DISABLED', to use_proportional_edit= False,