Sapling add-on fails to create an armature on a pruned tree ("Bone not found" error) #104931

Open
opened 2023-10-01 21:17:55 +02:00 by Nahor · 0 comments

Blender Version
Broken: version: 3.6.4 Release Candidate, branch: blender-v3.6-release, commit date: 2023-09-22 08:59, hash: 37acb0cae894
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Sapling Tree Gen (0, 3, 4)
Author: Andrew Hale (TrumanBlending), Aaron Buchler, CansecoGPC

Short description of error
When adding an armature on a pruned tree created with the add-on, Blender reports a "bone not found" error, e.g.:

Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\__init__.py", line 1093, in execute
    utils.addTree(self)
  File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 1848, in addTree
    create_armature(
  File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 814, in create_armature
    b.parent = arm.edit_bones[parBone]
KeyError: 'bpy_prop_collection[key]: key "bone781.003" not found'
Error: Python: Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\__init__.py", line 1093, in execute
    utils.addTree(self)
  File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 1848, in addTree
    create_armature(
  File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 814, in create_armature
    b.parent = arm.edit_bones[parBone]
KeyError: 'bpy_prop_collection[key]: key "bone781.003" not found'

Exact steps for others to reproduce the error
From an empty project

  • Enable the Add Curve: Sapling Tree Gen add-on
  • Add a new Curve > Sapling Tree Gen
  • In the Sapling: Add Tree dialog:
    • in the Geometry settings, load the weeping_willow preset.
    • in the Branch Splitting settings, increase the branch splitting levels to 3. This will create long drooping branches, some of which drop below the ground
    • in the Pruning settings, check the Prune option. Now all the branches will be above ground again.
    • in the Armature settings, check the Use Armature option. Blender will then report the "Bone not found" error.
**Blender Version** Broken: version: 3.6.4 Release Candidate, branch: blender-v3.6-release, commit date: 2023-09-22 08:59, hash: `37acb0cae894` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Sapling Tree Gen (0, 3, 4) Author: Andrew Hale (TrumanBlending), Aaron Buchler, CansecoGPC **Short description of error** When adding an armature on a pruned tree created with the add-on, Blender reports a "bone not found" error, e.g.: ``` Traceback (most recent call last): File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\__init__.py", line 1093, in execute utils.addTree(self) File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 1848, in addTree create_armature( File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 814, in create_armature b.parent = arm.edit_bones[parBone] KeyError: 'bpy_prop_collection[key]: key "bone781.003" not found' Error: Python: Traceback (most recent call last): File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\__init__.py", line 1093, in execute utils.addTree(self) File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 1848, in addTree create_armature( File "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.6.4.0_x64__ppwjx1n5r4v9t\Blender\3.6\scripts\addons\add_curve_sapling\utils.py", line 814, in create_armature b.parent = arm.edit_bones[parBone] KeyError: 'bpy_prop_collection[key]: key "bone781.003" not found' ``` **Exact steps for others to reproduce the error** From an empty project - Enable the `Add Curve: Sapling Tree Gen` add-on - Add a new `Curve > Sapling Tree Gen` - In the `Sapling: Add Tree` dialog: - in the `Geometry` settings, load the `weeping_willow` preset. - in the `Branch Splitting` settings, increase the branch splitting levels to 3. This will create long drooping branches, some of which drop below the ground - in the `Pruning` settings, check the `Prune` option. Now all the branches will be above ground again. - in the `Armature` settings, check the `Use Armature` option. Blender will then report the "Bone not found" error.
Nahor added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-10-01 21:17:56 +02:00
Damien Picard added
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-10-01 21:31:01 +02:00
Germano Cavalcante added the
Module
Add-ons (Community)
label 2023-10-02 14:47:21 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104931
No description provided.