unreal.NeuralMorphTrainingModel
¶
- class unreal.NeuralMorphTrainingModel(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
MLDeformerGeomCacheTrainingModel
The training model for the neural morph model. This class is our link to the Python training.
C++ Source:
Plugin: NeuralMorphModel
Module: NeuralMorphModelEditor
File: NeuralMorphTrainingModel.h
Editor Properties: (see get_editor_property/set_editor_property)
sample_bone_rotations
(Array[float]): [Read-Write] The bone rotations in bone (local) space for this sample. This is updated after SetCurrentSampleIndex 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 SetCurrentSampleIndex is called.sample_deltas
(Array[float]): [Read-Write] The delta values per vertex for this sample. This is updated after SetCurrentSampleIndex is called. Contains an xyz (3 floats) for each vertex.
- generate_curve_group_indices() Array[int32] ¶
Generate Curve Group Indices
- Return type:
Array[int32]
- get_num_bone_groups() int32 ¶
Get Num Bone Groups
- Return type:
int32
- get_num_curve_groups() int32 ¶
Get Num Curve Groups
- Return type:
int32
- train() int32 ¶
Main training function, with implementation in python. You need to implement this method. See the UMLDeformerTrainingModel documentation for more details. see: UMLDeformerTrainingModel
- Return type:
int32