def bonerot(bindentry): args = bindentry["bonerot"].split(":") scale = 1 if ("scale" in bindentry): scale = bindentry["scale"] return lambda: BlenderUtils.get_bones_rotation_rad(*args) * scale
def bonerot(bindentry): args = bindentry["bonerot"].split(":") scale = 1 if ("scale" in bindentry): scale = bindentry["scale"] return lambda: BlenderUtils.get_bones_rotation_rad(*args)*scale
def childbones_rot(bindentry): armature, axis = bindentry["childbones_rot"].split(":") return lambda: [ BlenderUtils.get_bones_rotation_rad(armature, bone, axis) for bone in bpy.data.objects[armature].pose.bones.keys() ]