[Bf-python] Suggestions for the basics of an NLA API
Ken Hughes
khughes at pacific.edu
Sat May 20 19:56:49 CEST 2006
Roland Hess wrote:
>
> Anyway, here's my notes on what I think a bpy api for NLA ought to look
> like. Heck, I've even provided SDNA and function references, so writing
> it should be a snap for someone! Or, well, not.
I've started working this into an epydoc page that I can then start
coding from (wow, that's probably never been done before). Looking over
the discussion, we will need two new PyTypes I'll call ActionStrips and
ActionStrip.
ActionStrips is a sequence operator for ActionsStrips, which supports
dictionary-like mappings.
I only have two unanswered questions (for right now):
> ActionStrip.snapToFrame()
> Activates the functionality found in NLA Strip menu under "Snap to Frame"
> This function snaps the ends of the action strip to the nearest whole
> numbered frame.
I'm wondering how useful this method will be. Just wondering.
> ActionStrip.addStrip("Name",Action Object
> [,StripStart,StripEnd,ActionStart,ActionEnd,Repeat,BlendMode,StridePath,
> StrideAxis,StrideLength,Stridebone,BlendIn,BlendOut])
> This function creates a new Action Strip, attached to the Armature
> object.
I'm thinking this method would be ActionStrips.append(), but its
required arguments are an Action object and a name string?
More information about the Bf-python
mailing list