Expy-Kit icon indicating copy to clipboard operation
Expy-Kit copied to clipboard

Edit Rig has no attribute layers

Open ayonmollah opened this issue 1 year ago • 10 comments

Python: Traceback (most recent call last): File "C:\Users\ariya\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Expy-Kit-main\operators.py", line 1206, in invoke return self.execute(context) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ariya\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Expy-Kit-main\operators.py", line 1466, in execute new_bone.layers[self.ret_bones_layer] = True ^^^^^^^^^^^^^^^ AttributeError: 'EditBone' object has no attribute 'layers'

ayonmollah avatar Sep 06 '24 17:09 ayonmollah

I've experienced similar when trying to bind to active armature and choosing To Bind: Rigify_Controls or Rigify_Controls_0_4 and Bind Target as Mixamo, as soon as I select Mixamo I'm hit with this error.

Am using Blender version 4.2.1, Expy Kit version 0.6.1 and Rigify version 0.6.10

Have been following through the workflow at 21:06 of this video https://www.youtube.com/watch?v=ars_rEC3oP8

And the exact error I get is

Python: Traceback (most recent call last): File "C:\Users<user>\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Expy-Kit-main\operators.py", line 1466, in execute default='None') ^^^^ AttributeError: 'EditBone' object has no attribute 'layers'

Coniix avatar Sep 08 '24 12:09 Coniix

Did you get any Fix though?

ayonmollah avatar Sep 08 '24 12:09 ayonmollah

Nope not yet just adding further evidence and more details to this issue

Coniix avatar Sep 08 '24 12:09 Coniix

Okay I found a way around my issue, basically the problem is I was using blender 4.2, I downgraded to 4.1 and that got me passed the error I was experiencing

Until/if proj is updated to support 4.2 I recommend anyone else reading this and experiencing similar problems to try installing 4.1 from Blenders archived versions

Coniix avatar Sep 08 '24 13:09 Coniix

Hi,

I can't reproduce this error, basically Expy Kit is running in legacy mode and it's looking for blender's 3 bone layers system. The addon checks bpy.app.version for that, I don't know why it is not registering the right version on your system. Any of you using a custom blender build? I have tested Expy Kit on windows and linux, but not Mac.

pKrime avatar Sep 13 '24 14:09 pKrime

I wasn't using a custom build but I just tried to recreate it myself on Blender 4.2 again and seems to be working okay now so I dunno, maybe just some weird one off thing, anyone with similar issues should just try reinstalling or something

Coniix avatar Sep 21 '24 17:09 Coniix

Hello, I encountered the same issue, and Blender prompted me with the following message.

Python: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Expy-Kit-main\operators.py", line 1466, in execute new_bone.layers[self.ret_bones_layer] = True AttributeError: 'EditBone' object has no attribute 'layers'

I am using Blender version 4.0.2, Expy Kit version 0.5.2 and Rigify version 0.6.9

Hvki-tree avatar Oct 10 '24 01:10 Hvki-tree

I updated the Expy-Kit version to 0.6.1, and the issue has been resolved. Thank you for your work!

Hvki-tree avatar Oct 10 '24 07:10 Hvki-tree

Same errror in Blender 4.4

jvetulani avatar Jun 12 '25 21:06 jvetulani

Updated operators.py to work with Blender 4.4: removed deprecated .layers, fixed bone collections, and wrapped look_bone references. It works in 4.4 for me now :) This was a bit of a whackamole tho haha :D

operators.py.zip

jvetulani avatar Jun 12 '25 23:06 jvetulani