📋 Metadata
- Author: roaoao
- Date: 2016-05-11 07:30:43
- Type:
answer - Reply to: post_00156
💬 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()