A class that allows a user to access the new max mixers in max 8.
This class allows the user to create, access, and remove max mixes from the mixer. The class exists in the scene as a single global variable, TheMaxMixerManager.
#include <IMixer8.h>
Public Member Functions |
|
virtual | ~MaxMixerManager () |
Destructor. |
|
BIPExport int | NumMaxMixers () |
Returns the Number of Max Mixers in the
mixer. |
|
BIPExport IMixer8 * | GetNthMaxMixer (int index) |
Get's the Nth max mixer. |
|
BIPExport IMixer8 * | GetMaxMixer (INode *node) |
Get's the max mixer that has this node in
it. |
|
BIPExport void | RemoveNthMaxMixer (int index, BOOL collapse, BOOL keyperframe) |
Remove the nth max mixer from the mixer, and
subsequently either collapse the mixed animation onto the the old
max mixer nodes, or replace the animation with the original
animation that was there. |
|
BIPExport bool | AddMaxMixer (INodeTab &nodes, const MCHAR *nameOfMix) |
Add a new max mixer to the mixer using a set
of nodes. |
|
BIPExport bool | AddMaxMixer (Tab< NodeAndAnims > &nodeAnims, const MCHAR *nameOfMix) |
Add a new max mixer to the mixer via list of
nodes and specific tracks you want to add. |
virtual ~MaxMixerManager | ( | ) | [inline, virtual] |
Destructor.
{;}
BIPExport int NumMaxMixers | ( | ) |
Returns the Number of Max Mixers in the mixer.
BIPExport IMixer8* GetNthMaxMixer | ( | int | index | ) |
Get's the Nth max mixer.
[in] | index | The index of the IMixer8 interface that's returned. If the index is less than zero or greater than the number of max mixers, then NULL will be returned. |
Get's the max mixer that has this node in it.
[in] | node | Get the max mixer that this node in it. If this node isn't in any mixers, then NULL will be returned. |
BIPExport void RemoveNthMaxMixer | ( | int | index, |
BOOL | collapse, | ||
BOOL | keyperframe | ||
) |
Remove the nth max mixer from the mixer, and subsequently either collapse the mixed animation onto the the old max mixer nodes, or replace the animation with the original animation that was there.
[in] | index | The index of the max mixer to be removed. If the index is less than zero or greater than the number of max mixers, then nothing will happen. |
[in] | collapse | If TRUE the mixer will collapse and replace the mixer slave controllers with the values set in the mixer, otherwise it will replace the slaves with the original controllers and their values, when the nodes were added to the mixer. |
[in] | keyperframe | If TRUE the mixer will collapse with a keyperframe, if FALSE, the collapse will try to collapse individual keyframes from the clips instead. |
BIPExport bool AddMaxMixer | ( | INodeTab & | nodes, |
const MCHAR * | nameOfMix | ||
) |
Add a new max mixer to the mixer using a set of nodes.
[in] | nodes | The nodes to be added to the mixer. |
[in] | nameOfMix | The name of the max mix. Note that if the name already exists the function will return false and the new max mix won't be created. |
BIPExport bool AddMaxMixer | ( | Tab< NodeAndAnims > & | nodeAnims, |
const MCHAR * | nameOfMix | ||
) |
Add a new max mixer to the mixer via list of nodes and specific tracks you want to add.
[in,out] | nodeAnims | A tab of the NodeAndAnims structures to be added to the mixer. This provides more flexibility in specifying which tracks you really want to be mixed or not. NodeAndAnims is defined in ILoadSaveAnimation.h Note that if a node is found in another mix we will delete it, and the resulting nodeAnims tab after the function call will contain those nodeAnims currently still existing in the maxObject. |
[in] | nameOfMix | The name of the max mix. Note that if the name already exists the function will return false and the new max mix won't be created. |