NLA Strips Evaluation

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Sun Dec 05, 2004 3:40 am
Location: Chch, NZ

NLA Strips Evaluation

Post by aligorith »


I was wondering where the code for how nla strips are evaluated resides. In particular, how blendin and blendout work.


Posts: 98
Joined: Fri Oct 18, 2002 2:47 pm
Location: Pennsylvania, USA

Post by harkyman »

This is from memory, so double-check...

nla evaluation code resides in /source/blender/blenkernel/intern/action.c

specifically, the function is called do_nla(), so if I pointed to the wrong function, search the sources for "void do_nla" and that'll get you there.

As to blendin and blendout, they are used as a blending factor when do_nla hands the pose-blending off to another function. If blendin is 0 on a certain frame, you get 0% of the bottom strip, and 100% of the upper. If it's .5, you get 50% and 50%, etc.

If I knew how to create new Ipo types and attach them to structures, which, really it's probably not all that hard, this sort of blending could be done with an Ipo curve for significantly more control. Hmmmm. That sounds like a good idea.

Post Reply