"AttributeError: 'Bone' object has no attribute 'select'" when Prep for target application #4
Labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kkbp-dev/KKBP_Importer#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm familiar with the prior version but decided to try version 9. I installed Blender 5, the latest MMD tools, the v9 importer into blender and the v5 exporter into KK sunshine.
I exported new model files from KK sunshine.
I imported the new model files with the button "Use FK Armature"
I then immediately pressed the button "Prep for target application"
I get the error: AttributeError: 'Bone' object has no attribute 'select'
Full log below. I tried this on two two different models and got the same error. They both work in the prior version.
Thanks for all your work on this project!
==== KKBP Log ====
Importing pmx files with mmdtools...
Import PMX operation took 0.0 seconds
rename_uv_maps operation took 0.003 seconds
Renamed duplicate body material cf_m_namida_00.001 to cf_m_namida_00
Renamed duplicate body material cf_m_namida_00.002 to cf_m_namida_00
Renamed duplicate body material cf_m_sirome_00.001 to cf_m_sirome_00
Renamed duplicate body material Bonelyfans.001 to Bonelyfans
Renamed duplicate body material cf_m_tang.001 to cf_m_tang
separate_rigged_tongue operation took 0.319 seconds
separate_hair operation took 0.118 seconds
separate_alternate_clothing operation took 0.0 seconds
Warning: Material wasn't found when separating materials: c_m_shadowcast
Warning: Material wasn't found when separating materials: Standard
Warning: Nothing was selected when separating materials from: Body ShadeTino
delete_shad_bone operation took 0.93 seconds
Warning: Nothing was selected when separating materials from: Body ShadeTino
Warning: Nothing was selected when separating materials from: Outfit 01 ShadeTino
separate_hitboxes operation took 0.374 seconds
delete_mask_quad operation took 0.0 seconds
remove_unused_shapekeys operation took 0.0 seconds
translate_shapekeys operation took 0.292 seconds
combine_shapekeys operation took 2.182 seconds
correct shapekeys operation took 0.001 seconds
create_tear_shapekeys operation took 1.667 seconds
create gag_eye_shapekeys operation took 0.571 seconds
remove_body_seams operation took 0.085 seconds
mark_body_freestyle_faces operation took 0.107 seconds
reparent_all_objects operation took 0.026 seconds
remove_bone_locks_and_modifiers operation took 0.04 seconds
scale_armature_bones_down operation took 0.024 seconds
Rebuild bone data operation took 1.227 seconds
unparent_body_bone operation took 0.007 seconds
delete_non_height_bones operation took 0.296 seconds
bend_bones_for_iks operation took 0.029 seconds
remove_empty_vertex_groups operation took 1.271 seconds
reorganize_armature_layers operation took 0.062 seconds
relayer_accessory_bones operation took 1.759 seconds
shorten_kokan_bone operation took 0.006 seconds
scale_skirt_and_face_bones operation took 0.041 seconds
modify_finger_bone_orientations operation took 0.061 seconds
remove_unused_material_slots operation took 0.112 seconds
Moving duplicate material cf_m_sirome_00 in slot 8 to the original slot 7
remap_duplicate_material_slots operation took 0.134 seconds
Detected alpha shader. Setting render method to blended: cf_m_shorts_02 10461
Detected alpha shader. Setting render method to blended: cf_m_op_swim01 10481
replace_materials_for_tears_tongue_gageye operation took 0.139 seconds
link_textures_for_tongue_tear_gag operation took 0.003 seconds
import_and_setup_smooth_normals operation took 0.061 seconds
setup_gag_eye_material_drivers operation took 0.0 seconds
Adding outlines to character...
add_outlines_to_body operation took 0.066 seconds
add_outlines_to_hair_clothes operation took 0.113 seconds
KKBP import finished in 0.2 minutes
Prepping for export...
Error: Unknown python error occurred
Traceback (most recent call last):
File "C:\Users\Vind\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\user_default\kkbp\exporting\exportprep.py", line 492, in execute
prep_operations(prep_type, simp_type)
File "C:\Users\Vind\AppData\Roaming\Blender Foundation\Blender\5.0\extensions\user_default\kkbp\exporting\exportprep.py", line 95, in prep_operations
bone.select = True
^^^^^^^^^^^
AttributeError: 'Bone' object has no attribute 'select'
Same
Thanks, I just updated the release. It should work in beta 11
Hi, thanks for fixing the issue! Unfortunately, as it's merging the bones it gets a new issue. I tried on two different models, and on both it gets an error when:
Merging bone: cf_hit_spine01
Full log attached.
I tried this again in beta12 and my issue is resolved. Thanks!