Neat python tricks for modeling - animate1978/MB-Lab GitHub Wiki
- Posing
-
Change bone position using using python
* Rotation: bpy.context.object.pose.bones["IK_control_hd"].rotation_mode = 'X,Y,Z' bpy.context.object.pose.bones["IK_control_hd"].rotation_euler=[x,y,z] #Here x,y, and z are the angles you want to rotate the bone to in radians * Translation: bpy.context.object.pose.bones["IK_control_hd"].location[x,y,z] #you can replace x, y, and z with the actual values you want it to translate with or use them as #variables._
-