Post #158: ![](https://blenderartists.org/user_avatar/blenderartists.org/draguu/48/15444_2.

📋 Metadata

  • Author: roaoao
  • Date: 2016-05-11 07:30:43
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00156

🏷️ Tags

pie-menu hotkeys intermediate solved

  • Pie Menu Editor
  • Python Scripting
  • Macro Editor

💬 Content

draguu:

one more question, i want to add bone group selection in pie menu , i created few groups and i selected desire bone group and then press select , then i go to info panel and select active index=0 and then pose select code , and add it to pie menu , but nothing happens i tried it many times . can you help me

Try this code (replace ‘Group’ with your bone group name):

C.object.pose.bone_groups.active_index = C.object.pose.bone_groups.find('Group'); O.pose.group_select()

If you want to deselect all other bones use this:

O.pose.select_all(action='DESELECT'); C.object.pose.bone_groups.active_index = C.object.pose.bone_groups.find('Group'); O.pose.group_select()

🔗 View on Blender Artists