Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Flynsarmy opened this issue Oct 4, 2024 · 0 comments · May be fixed by #67
Open

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

Flynsarmy opened this issue Oct 4, 2024 · 0 comments · May be fixed by #67

Comments

@Flynsarmy
Copy link

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,

@Flynsarmy Flynsarmy linked a pull request Oct 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant