Class FlexSceneFile
- Namespace
- ValveResourceFormat.FlexSceneFile
- Assembly
- ValveResourceFormat.dll
Represents a Valve flex scene file containing facial animation data.
public class FlexSceneFile
Inheritance
Inherited Members
Fields
MAGIC
The magic number for flex scene files.
public const uint MAGIC = 5654085
Field Value
Properties
FlexSettings
Gets all flex settings.
public FlexSceneFile.FlexSetting[] FlexSettings { get; }
Property Value
KeyNames
Gets the names of all flex controller keys.
public string[] KeyNames { get; }
Property Value
- string[]
Name
Gets the name of the flex scene.
public string Name { get; }
Property Value
Version
Gets the version of the flex scene file.
public int Version { get; }
Property Value
Methods
GetSettingForPhonemeCode(int)
Returns the flex settings for the specified phoneme code, or null if no data is stored for the specified phoneme.
public FlexSceneFile.FlexSetting GetSettingForPhonemeCode(int phoneme)
Parameters
phoneme
int
Returns
Read(Stream)
Reads the flex scene data from the specified stream.
public void Read(Stream input)
Parameters
input
Stream
Read(string)
Opens and reads the given filename. The file is held open until the object is disposed.
public void Read(string filename)
Parameters
filename
string-
The file to open and read.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
-
A string that represents the current object.
Remarks
Exports the flex scene to VFlex format used by Source Engine for facial animation data.