Skip to main content

Expressions and Drivers

Math Expressions

Any animatable actor property (color, radius, position, etc.) can be animated with a math expression (Similar to SFM's expression operators). The implementation is based on the high-performance exprtk library, which includes support for:

  • Logical operators (and/or/not/etc.)
  • Conditions (if/ternary/etc.)
  • Loops (for/while/etc.)
  • Vectors

Inputs:

  • value: The current value
  • time: The current time in seconds
  • timeIndex:
  • startOffset:
  • timescale:
  • duration:

Functions:

Contrary to SFM's expression operators, PFM's math expressions cannot reference anything outside of the animation channel for the property it's assigned to. To create dependencies between properties, you need to use animation drivers instead.

 

Animation Drivers

This is a placeholder.