[Bf-python] NMesh module and RVK

Gilbert, Joseph jgilbert at tigr.org
Wed Nov 19 16:14:12 CET 2003


You know as another option it could be useful to make this an internal
module that is imported into Nmesh and Lattice and Curve.  Sorta like
matrix.c and vector.c and rgb.  This could also be done with BGL.c to
get access to the buffer object right? That way you could do:
Nmesh.insertKey(frame)
And internally a new keyblock would be created using the Key.c file.
Nmesh would check to see if there is an object-link to the mesh and then
attempt to add the keyblock to the Object's key at the frame indicated.
That's another option rather than making key an external module. ?*


-----Original Message-----
From: bf-python-admin at blender.org [mailto:bf-python-admin at blender.org]
On Behalf Of Willian Padovani Germano
Sent: Tuesday, November 18, 2003 9:18 PM
To: bf-python at blender.org
Subject: Re: [Bf-python] NMesh module and RVK

Hi Joe,

> Ooo.  Im excited now! The Key module! This should great. Will this
solve
> the 100 frame clamp problem with the insert_xxxkey() methods?  If you
> can just add keyblock data/per frame to the object's key it would
remove
> the need to call these methods, right? Yea!

I already did some work on this tonight.  It's a weird module, Key
itself is
not that useful, since each object only has one and they are only
created
for an object, not stand-alone.  Keyblocks are where the fun is, so I'll
have to think well which is better:

- Create the Blender.Key  + KeyBlock module or
- Create only the helper pytype KeyBlock and improve Mesh/Curve/Lattice
methods that deal with keys.
- Both (likely)

Fixing the problem you mention isn't hard.  I'll also look at the Ipos,
there's one in Key and one in Mesh, exposing them might be useful.
BGL's
buffer can also be useful to wrap the data (plus also a method that
returns
keyblock->data as a list of vectors -- users choose). Well, need to
research
/ think more about the best solution.  We want a fast / economic way to
deal
with all those keys in your Quake models, right ; ) ?

--
Willian, wgermano at ig.com.br

_______________________________________________
Bf-python mailing list
Bf-python at blender.org
http://www.blender.org/mailman/listinfo/bf-python



More information about the Bf-python mailing list