Skip to content

Conversation

@morrisoran
Copy link

fix init to make plugin work on blender 4.4+

fix __init__ to make plugin work on blender 4.4+
@morrisoran morrisoran changed the title Update spring_bones.py Fix plugin for blender 4.4+ May 6, 2025
@IfArtSchoolSaysNeinEuropeWillbeMein
Copy link

IfArtSchoolSaysNeinEuropeWillbeMein commented Jun 13, 2025

I signed up Github just to say thank you!

@RustFoxrel
Copy link

Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\spring_bones (1).py", line 679, in execute
for i, l in enumerate(data_bone.layers):
^^^^^^^^^^^^^^^^
AttributeError: 'Bone' object has no attribute 'layers'

bro

@morrisoran
Copy link
Author

Python: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\spring_bones (1).py", line 679, in execute for i, l in enumerate(data_bone.layers): ^^^^^^^^^^^^^^^^ AttributeError: 'Bone' object has no attribute 'layers'

bro

Armature layers is the thing that was before bone collections (prior to ~4.0). Judging by the code (i am not the dev of the addon) this function is only for switching to collider bone. This one is not functionally most important imo, because colliders works fine without using it.

It is possible to fix it for bone collections, but I need to dig up into old references, because I don't remember how armature layers worked.

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 this pull request may close these issues.

3 participants