#i can already tell you you won't like the results.
ob = bpy.data.objects['metarig']
bpy.context.scene.objects.active = ob
BONE = ob.pose.bones[BONE_NAME]
BONE.rotation_mode = 'XYZ'
tmpcheck = random.randint(1,3)
if tmpcheck == 1:
axis = 'X'
if tmpcheck == 2:
axis = 'Y'
if tmpcheck == 3:
axis = 'Z'
tmpangle = random.randint(LIMIT1,LIMIT2)
angle = tmpangle
def cripple():#does everthing
ob = bpy.context.object
if ob.type == 'ARMATURE':
armature = ob.data
for bone in armature.bones:
def listedlimits():#and since you know what every bone is, you can make your own list and generate a random pose.
#this is just a terrible way to animate, but can be a lot of fun if you just want to see random effects and apply limits to your bones, note that the
#limits here are not the total limit but the limits as to what can be applied. you are far better off going into riggify and creating your own by lining
#an metarig up. Or by using someone elses human rig.