unreal.K2Node_MathExpression

class unreal.K2Node_MathExpression(outer: Object | None = None, name: Name | str = 'None')

Bases: K2Node_Composite

This node type acts like a collapsed node, a single node that represents a larger sub-network of nodes (contained within a sub-graph). This node will take the math expression it was named with, and attempt to convert it into a series of math nodes. If it is unsuccessful, then it generates a series of actionable errors.

C++ Source:

  • Module: BlueprintGraph

  • File: K2Node_MathExpression.h

Editor Properties: (see get_editor_property/set_editor_property)

  • error_msg (str): [Read-Write] Error/Warning description

  • expression (str): [Read-Write] The math expression to evaluate