Navigation
API > API/Plugins > API/Plugins/OptimusCore
References
| Module | OptimusCore |
| Header | /Engine/Plugins/Animation/DeformerGraph/Source/OptimusCore/Public/OptimusExpressionEvaluator.h |
| Include | #include "OptimusExpressionEvaluator.h" |
Syntax
namespace Optimus
{
namespace Expression
{
enum EParseFlags
&123;
Default = 0,
ValidateConstants = 1 << 0,
&125;
}
}
Values
| Name | Description |
|---|---|
| Default | |
| ValidateConstants | Default parsing behavior |
Remarks
Simple, fast expression evaluation engine. Can evaluate simple arithmetic expressions, including user-settable constants. 1 + 1 foo + (3 * bar)
Allowable operands are taken from Python and are currently as follow: -x Unary negation x + y Addition x - y Subtraction x * y Multiplication x / y Division (div-by-zero returns zero) x ** y Raise x to y's power
Terms can also be grouped by parentheses '(' and ')'.
Constants that begin with a number, include spaces or any of the above operands/parentheses are allowed, but must be then enclosed in single quotes when referenced. E.g: 'foo(1)' * 2 rather than: foo (1) * 2