Table of Contents

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

uint

Properties

FlexSettings

Gets all flex settings.

public FlexSceneFile.FlexSetting[] FlexSettings { get; }

Property Value

FlexSceneFile.FlexSetting[]

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

string

Version

Gets the version of the flex scene file.

public int Version { get; }

Property Value

int

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

FlexSceneFile.FlexSetting

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.