Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Neat python tricks for modeling

kity0114 edited this page Jun 3, 2019 · 5 revisions
  • 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._