vertex keys through getIpo() ?


(amorilia) #1

Hi all,

I would like to add support for facial animation in an exporter…

But what is the proper way to access relative vertex keys in the Python API? That is, suppose I have a mesh, attached to it some RVK channels, how can I get to the Ipo object that represents these vertex keys?

NMesh does not have an getIpo() method like Material…

And calling the getIpo() member of the mesh Object does not return those channels…

Thanks!
Amorilia


(jms) #2

if you works with the current cvs compilation :

import  Blender
OBJECT=Blender.Scene.GetCurrent().getActiveObject()
if OBJECT and OBJECT.getType()=='Mesh':
	print dir(OBJECT.data.key)

(amorilia) #3

Oh, directly via the object data… Unfortunately I do not run the latest version from CVS, I am a bit reluctant to recompile Blender every other week. :slight_smile: I guess I have to wait for the next Blender release.

I assume there is no other way, using say v2.37?

Anyway, thanks, this will get me started right away when the next release arrives!


(jms) #4

You can get the newest compilations at this address :


(amorilia) #5

Ah, that looks very nice :slight_smile: Now back to coding… Thanks a lot helping me out with this!