[Bf-python] Generate NLA Strips with Python
Roland Hess
rolandh at reed-witting.com
Wed Apr 7 13:46:19 CEST 2004
> My feeling about this is that there needs to be a complete NLA module.
>This module should deal with actions, action Channels, action Keys, NLA
>strips, etc. There are reasons (I see) for doing this:
Good reasons, every single one. Agreed. I'll work on it, but please
see my note below*.
> I also don't
>think that any changes to the .c src/ files are necessary. This can be
>simply added to the module as a callback.
Here's where my newbieness comes in. I don't really know what a
callback is, so I may be speaking from ignorance, but here goes...
When looking through the NLA code, it seems that the section for
creating the strip is repeated, verbatim, many times throughout. My
thought was that an independent function that did this when given the
proper parameters would be more in keeping with good programming
practices, and that later, if someone so desired, they could clean up
the NLA code and swap the duplicated sections for a single function
call. What then, would be the advantage to reduplicating this code
again in the Python section, essentially cutting and pasting, when
the function already exists elsewhere?
> It would be my suggestion to add a new NLA module. It could
>simply contain
>1 prototype (for now) (and maybe a callback), and eventually other
>developers could add addition functionality regarding armature animation to
>this source file.
Will do.
> p.s. All new python modules need updates to the MSVC
>projectfiles 6.0 and
>7.0 and the SCons build file, but not the make file. (and also some
>documentation :)
*I have no way of doing this, as I'm compiling with free tools on
Windows (cygwin, etc.). If I break this out into a new module, will
the "make" system pick it up and compile it simply by having it in
the proper directories? If not, what do I need to do to make it
happen? Also, if I do so and get it working, would someone else be
able to update the MSVC and SCons files?
Thanks for the input.
--
Roland Hess - harkyman
Digital Prepress/Network Administrator
Reed & Witting Company
More information about the Bf-python
mailing list