Post #1473: ![](https://blenderartists.org/user_avatar/blenderartists.org/rhyging5/48/725092

📋 Metadata

🏷️ Tags

macro hotkeys advanced solved

  • 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')

🔗 View on Blender Artists