[Bf-python] action / NLA api
Toni Alatalo
antont at kyperjokki.fi
Thu Nov 10 15:49:13 CET 2005
hi,
wanted to bring up the action / NLA api design again. previously, we've had
access to actions via the Armature.NLA submodule. as was discussed here
earlier, this may be to change if/when actions become a more general concept
(with the upcoming introduction of IPO bags?)
back to the current usage of armatures/bones and actions, i was reminded by
this when Roland Hess ('harkyman') told yesterday about his idea for a new
NLA functionality to match pose positions between different actions based on
a selected bone. his example: "lets say you have two actions in NLA, one for
someone doing a backflip, and one for someone walking. The backflip action
ends five blender units behind the starting point. With a MatchMove feature,
you just point the next strip (the walk), to the backflip, and indicate that
you want to match it based on, say, the left foot. then, it translates the
poses of the walk Action so it lines up naturally with the finish of the
backflip action."
now, how would doing that be supported nicely by the API?
backflip.match(walk, l_foot) ? not really i guess, 'cause this is not about
the actions themselves but about how they are used with the strips in NLA.
strip1 = Strip(character, backflip)
strip1.sta = 0
strip1.end = 50
strip2 = Strip(character, walk)
strip2.sta = 50
strip2.match(strip1, l_foot)
?
.. might be more like it
~Toni
More information about the Bf-python
mailing list