Class: SwitchLayer

Parent class: GroupLayer

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