Previous Thread  Next Thread

chat icon Know anyone how to move bones in python?

p9

Posted: Sun Sep 16, 2012 5:22 pm
Joined: 16 Sep 2012
Posts: 3
I am testing with bpy but I couldn't found a good tutorial.

From this tutorial
http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Cookbook/Code_snippets/Armatures
I get



Object name: MeshObject
Armature name: I believe that is MyRigData

I want move the first bone named "Tip"
My code is

Code:
import bpy

bpy.ops.object.mode_set(mode="POSE")

rig = bpy.data.objects.get("MyRigData")  # Get Armature
pb = rig.pose.bones["Tip"]


Anyone help me?
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group