unreal.OptimusDeformerInstance

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

Bases: MeshDeformerInstance

Class representing an instance of an Optimus Mesh Deformer. This implements the UMeshDeformerInstance interface to enqueue the graph execution. It also contains the per instance deformer variable state and local state for each of the graphs in the deformer.

C++ Source:

  • Plugin: DeformerGraph

  • Module: OptimusCore

  • File: OptimusDeformerInstance.h

enqueue_trigger_graph(trigger_graph_name) bool

Trigger a named trigger graph to run on the next tick

Parameters:

trigger_graph_name (Name) –

Return type:

bool

set_bool_variable(variable_name, value) bool

Set the value of a boolean variable.

Parameters:
  • variable_name (Name) –

  • value (bool) –

Return type:

bool

set_float_variable(variable_name, value) bool

Set the value of a float variable.

Parameters:
  • variable_name (Name) –

  • value (double) –

Return type:

bool

set_int_variable(variable_name, value) bool

Set the value of an integer variable.

Parameters:
  • variable_name (Name) –

  • value (int32) –

Return type:

bool

set_transform_variable(variable_name, value) bool

Set the value of a transform variable.

Parameters:
Return type:

bool

set_vector4_variable(variable_name, value) bool

Set the value of a 4-vector variable.

Parameters:
Return type:

bool

set_vector_variable(variable_name, value) bool

Set the value of a 3-vector variable.

Parameters:
Return type:

bool