Blender Git Loki

Git Commits -> Revision 023737d

Revision 023737d by Joseph Gilbert (master)
May 21, 2006, 21:02 (GMT)
*python additions
- added a method Action.getFrameNumbers()
returns the frames at which keyframes were inserted for this action

example usage:
import Blender

myobj = Blender.Object.Get('Armature')
myaction = myobj.getAction()
frames = myaction.getFrameNumbers()

for frame in frames:
print 'bones at frame %d' % frame
myobj.evaluatePose(frame)
pose = myobj.getPose()
for bone in pose.bones.values():
print bone.head, bone.tail

Commit Details:

Full Hash: 023737daa42c9afc438cb2f0640655000aae2f8e
SVN Revision: 7491
Parent Commit: f13d63c
Lines Changed: +34, -0

1 Modified Path:

/source/blender/python/api2_2x/NLA.c (+34, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021