unreal.MLDeformerGeomCacheTrainingModel

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

Bases: MLDeformerTrainingModel

The training model base class for geometry cache based models. This class is our link to the Python training.

C++ Source:

  • Plugin: MLDeformerFramework

  • Module: MLDeformerFrameworkEditor

  • File: MLDeformerGeomCacheTrainingModel.h

Editor Properties: (see get_editor_property/set_editor_property)

  • mask_index_per_sample (Array[int32]): [Read-Write] The mask index for each sample. See GetTrainingInputAnimMasks() and GetTrainingInputAnimMaskData().

  • sample_bone_rotations (Array[float]): [Read-Write] The bone rotations in bone (local) space for this sample. This is updated after NextSample is called and is 6 floats per bone (2 columns of 3x3 rotation matrix).

  • sample_curve_values (Array[float]): [Read-Write] The curve weights. This is updated after NextSample is called.

  • sample_deltas (Array[float]): [Read-Write] The delta values per vertex for this sample. This is updated after NextSample is called. Contains an xyz (3 floats) for each vertex.

generate_basic_inputs_and_output_buffers(inputs_file_path, outputs_file_path) bool

Sample all input frames.

Parameters:
  • inputs_file_path (str)

  • outputs_file_path (str)

Return type:

bool