class SwitchLayer

Member Functions

string GetValue(frame)

Returns the switch value at a given frame. The value of a switch layer represents which sub-layer is active at that frame.

Return value (string): the switch value at a given frame
frame (int): frame number

void SetValue(frame, value)

Set the switch value at a given frame. The value of a switch layer represents which sub-layer is active at that frame.

Return value: none
frame (int): frame number
value (string): the name of the sub-layer to activate at that frame

AnimString SwitchValues()

Returns the animation channel asscoiated with the switching function.

Return value (AnimString): switch animation channel

bool InterpMode()

Test whether sub-layer interpolation is on or off.

Return value (bool): true if the sub-layers are interpolated during switching, otherwise false

void SetInterpMode(b)

Turn on or off sub-layer interpolation.

Return value: none
b (bool): true to turn on sub-layer interpolation, false to turn it off

void SetSourceFile(path)

Assign a switch data file to the switch layer.

Return value: none
path (string): file path to the switch data file
class SwitchLayer : public GroupLayer {
  const char *GetValue(int32 frame);
  void SetValue(int32 frame, const char *value);
  AnimString *SwitchValues();
  bool ContainsVisemes();
  const char *PhonemeToViseme(char phoneme);
  int32 RankViseme(const char *viseme);
  bool InterpMode();
  void SetInterpMode(bool b);
  void SetSourceFile(const char *path);
};