VFA: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page about undocumented file format, again)
 
(formatting)
 
Line 2: Line 2:
{{stub}}
{{stub}}


'''Valve Flex Animation''' ('''VFA''') is a file format used by {{hlfaceposer|4}} to store flex animations, and later import them in a [[VCD|scene file]]'s flex animation event.
'''Valve Flex Animation''' ('''VFA''') is a file format used by {{faceposer|4|nt=0}} to store flex animations, and later import them in a [[VCD|scene file]]'s flex animation event.


== Format ==
== Format ==


VFA files use the same format as [[VCD]] files, with the exception that they only store the <code>flexanimations</code> data. VFA files are always saved in the {{path|flexanimations}} folder by {{faceposer|1|nt=0}}.
VFA files use the same format as [[VCD]] files, with the exception that they only store the {{code|preset=1|flexanimations}} data. VFA files are always saved in the {{path|flexanimations}} folder by {{faceposer|1|nt=0}}.
{{note|VFA files always start with two spaces.}}
{{note|VFA files always start with two spaces.}}
:{{modernConfirm|Does it matter ? Can they still be parsed whitout those 2 spaces or is it a {{faceposer|2|nt=0}} bug ?}}
:{{modernConfirm|Does it matter ? Can they still be parsed whitout those 2 spaces or is it a {{faceposer|2|nt=0}} bug ?}}
<br>


'''Full example :'''
{{expand|title=Full example|{{clr}}
{{expand|{{clr}}
<source lang=js>
<syntaxhighlight lang=js>
   flexanimations samples_use_time defaultcurvetype=curve_catmullrom_normalize_x_to_curve_catmullrom_normalize_x
   flexanimations samples_use_time defaultcurvetype=curve_catmullrom_normalize_x_to_curve_catmullrom_normalize_x
   {
   {
Line 37: Line 37:
     }
     }
   }
   }
</syntaxhighlight>
</source>
}}
}}


[[Category:File formats]]
[[Category:File formats]]
[[Category:Choreography]]
[[Category:Choreography]]

Latest revision as of 04:25, 27 June 2025

English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

Valve Flex Animation (VFA) is a file format used by HLFaceposer Faceposer to store flex animations, and later import them in a scene file's flex animation event.

Format

VFA files use the same format as VCD files, with the exception that they only store the flexanimations data. VFA files are always saved in the 🖿flexanimations folder by Faceposer.

Note.pngNote:VFA files always start with two spaces.
Confirm:Does it matter ? Can they still be parsed whitout those 2 spaces or is it a HLFaceposer Faceposer bug ?


Full example
  flexanimations samples_use_time defaultcurvetype=curve_catmullrom_normalize_x_to_curve_catmullrom_normalize_x
  {
    "lid_tightener" combo 
    {
      0.4000 0.6100 "curve_easein_to_curve_easeout"
      2.4000 0.1200 "curve_linear_interp_to_curve_linear_interp"
      4.4000 0.5900 "curve_easein_to_curve_easeout"
      }
      {
        1.0000 0.7700 "curve_bspline_to_curve_bspline"
        1.8000 0.2700 "curve_bspline_to_curve_bspline"
        3.0000 0.7500 "curve_bspline_to_curve_bspline"
        4.0000 0.2900 "curve_bspline_to_curve_bspline"
      }
      "smile" leftedge curve_default_to_curve_hold 0.500 rightedge curve_kochanek_late_to_curve_default 0.250 
      {
        0.8000 0.7100
        1.6000 0.2700 "curve_easein_to_curve_easeout"
        2.2000 0.6000 "curve_easein_to_curve_easein"
        3.0000 0.2600 "curve_easeout_to_curve_easeout"
        3.6000 0.5900 "curve_linear_interp_to_curve_linear_interp"
      }
    }
  }