Function to select bones in pose

This commit is contained in:
2025-01-19 03:17:45 -06:00
parent be06439bc0
commit 2abd74bdc8
2 changed files with 21 additions and 3 deletions

View File

@ -37,6 +37,17 @@ def searchPoseMarker(context, posename, type):
pass
def selectBonesinPose(context, posename, active_marker):
try:
arm_object, pose_library = getArmatureData(context)
for bone in arm_object.pose.bones:
bone.bone.select = False
if findKeyframe(context, bone, active_marker.frame):
bone.bone.select = True
except:
pass
def findFcurve(context, bone_name, transform, index_int):
arm_object, pose_library = getArmatureData(context)
pose_markers = pose_library.pose_markers