Rimpotche / 3D-Ear-generator

Modular ear to integrate later in a head. Blender 2.80 and higher
85 stars 7 forks source link

Error when using "apply all changes" #1

Open poulet67 opened 3 years ago

poulet67 commented 3 years ago

Hi,

I am quite interested in using this program however I can't seem to get the apply all changes button to work. I get the following error:

Python: Traceback (most recent call last): File "C:\3D-Ear-generator-master (1)\3D-Ear-generator-master\api_new_ear_en\api_new_ear_en.blend\new_ear.py", line 1227, in execute File "C:\Program Files\Blender Foundation\Blender 2.92\2.92\scripts\modules\bpy\ops.py", line 132, in call ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: : keyword "apply_as" unrecognized

location: :-1

Rimpotche commented 2 years ago

Salut, Poulet67. I received today 2021-12-21 your notification. I read that you sent it on Oct 1. Sorry for the delay but not my fault. I made this script (my very only script) long ago without real python knowledge. So I really cannot solve your problem. Which version of Blender ? That may be the cause, because it worked if you followed all my advices. I made it under 2.80. I could not update it. Thanks for trying my API.

poulet67 commented 2 years ago

Bonjour de Canada,

I am a bit new to GitHub and was trying to remove my issue. Didn’t mean to send you a bunch of notifications

Truth be told I have fixed it already. I tried a few different versions of blender and none of them worked.

The issue is around line 1227 of the script:

    bpy.ops.object.modifier_apply(apply_as='SHAPE', modifier="Armature")

I think this API call has been depreciated. I had to change it to this to get it to work:

   bpy.ops.object.modifier_apply_as_shapekey(modifier="Armature")

I’ll leave it to you if you’d like to update it or not.

Cheers

From: @.> Sent: December 21, 2021 7:04 AM To: @.> Cc: @.>; State @.> Subject: Re: [Rimpotche/3D-Ear-generator] Error when using "apply all changes" (#1)

Salut, Poulet67. I received today 2021-12-21 your notification. I read that you sent it on Oct 1. Sorry for the delay but not my fault. I made this script (my very only script) long ago without real python knowledge. So I really cannot solve your problem. Which version of Blender ? That may be the cause, because it worked if you followed all my advices. I made it under 2.80. I could not update it. Thanks for trying my API.

— Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRimpotche%2F3D-Ear-generator%2Fissues%2F1%23issuecomment-998851516&data=04%7C01%7C%7Ce271adfd8234416c3a3808d9c4932d29%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637756958671474772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=X3ep7RK2BWLrTrkLMITWMemz6s0qLR3KBF%2F4C49N6IA%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPFLXZRVSOEE3O7EAIJRFSTUSCJPPANCNFSM5FDOMBQA&data=04%7C01%7C%7Ce271adfd8234416c3a3808d9c4932d29%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637756958671474772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=xFMcHv5hDmNx0Z8ds04WxDVdrBO3IzhC9tGqb3ki1xw%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7Ce271adfd8234416c3a3808d9c4932d29%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637756958671474772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CXs5APgMJ0N4Gq9fHQR0KZUoZHUU%2F5o0AUDLysgXjUg%3D&reserved=0 or Androidhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7Ce271adfd8234416c3a3808d9c4932d29%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637756958671474772%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Fmg845on3QsXsoYkhdikOBlTria3bcK8h%2Fj4aAbCzwk%3D&reserved=0. You are receiving this because you modified the open/close state.Message ID: @.***>

Sitwayen commented 2 years ago

@poulet67 This works for me as well, thank you