Hi All,
I am trying to scale a bone in pose mode using a frame change script link.
I want my bone to scale up and then scale down as time changes. I am trying to simulate breathing.
I have this code:
import Blender
from Blender import Armature, Scene
from Blender.Mathutils import *
#from Blender.Scene import Render
#
scn = Scene.GetCurrent()
arms = Armature.Get()
for arm in arms.values():
for bone in arm.bones.values():
ctx = scn.getRenderingContext()
curframe = ctx.currentFrame()
print curframe
if bone.hasChildren():
print bone.children[0].name
myScale = curframe/30
r = (myScale * 10) + 1
print "!" + str(myScale) +", " + str(r)
bone.children[0].size = [r, r, r]
Blender.Redraw()
But there is no size attribute for the bone.
What is the property for scaling a bone?