Post #1473: : post_01474, post_01478
🏷️ Tags
⚙️ Related PME Features
- Macro Editor
- Command tab
- Python Scripting
💬 Content
rhyging5:
Hello, sorry to disturb once again with my demands. Is possible to add a button for keyframing specific bones (even they are not selected) in LocRot or any keying set?
Hi, try something like this in Command tab:
bone_names = {"Bone", "Bone.001", "Bone.002"}; [setattr(bone, "select", bone.name in bone_names) for bone in C.object.data.bones]; bpy.ops.anim.keyframe_insert_menu(type='BUILTIN_KSI_LocRot')