unreal.MLPytorchDataSetInterface

class unreal.MLPytorchDataSetInterface(outer=None, name='None')

Bases: unreal.Object

MLPytorch Data Set Interface

C++ Source:

  • Plugin: MLDeformer

  • Module: MLDeformerEditor

  • File: MLPytorchDataSetInterface.h

Editor Properties: (see get_editor_property/set_editor_property)

  • current_sample_index (int32): [Read-Write] Current Sample Index: The current sample index.

  • sample_bone_rotations (Array(float)): [Read-Write] Sample Bone Rotations: The bone rotations in bone (local) space for this sample. This is updated after SetCurrentSampleIndex is called. Contains an xyzw (4 floats) for each bone.

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

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

  • vertex_delta_mean (Vector): [Read-Write] Vertex Delta Mean: Mean delta computed over the entire dataset.

  • vertex_delta_scale (Vector): [Read-Write] Vertex Delta Scale: Vertex delta scale computed over the entire dataset.

compute_deltas_statistics() bool

Compute delta statistics for the whole dataset.

Return type

bool

property current_sample_index

[Read-Only] Current Sample Index: The current sample index.

Type

(int32)

get_number_sample_curves() int32

Get number of input curves.

Return type

int32

get_number_sample_deltas() int32

Get the number of output deltas.

Return type

int32

get_number_sample_transforms() int32

Get the number of input transforms.

Return type

int32

num_samples() int32

Get the number of samples in this data set.

Return type

int32

property sample_bone_rotations

[Read-Write] Sample Bone Rotations: The bone rotations in bone (local) space for this sample. This is updated after SetCurrentSampleIndex is called. Contains an xyzw (4 floats) for each bone.

Type

(Array(float))

property sample_curve_values

[Read-Write] Sample Curve Values: The curve weights. This is updated after SetCurrentSampleIndex is called.

Type

(Array(float))

property sample_deltas

[Read-Write] Sample Deltas: The delta values per vertex for this sample. This is updated after SetCurrentSampleIndex is called. Contains an xyz (3 floats) for each vertex.

Type

(Array(float))

set_current_sample_index(index) bool

Set the current sample index. This must be in range of [0..GetNumSamples()-1].

Parameters

index (int32) –

Return type

bool

property vertex_delta_mean

[Read-Write] Vertex Delta Mean: Mean delta computed over the entire dataset.

Type

(Vector)

property vertex_delta_scale

[Read-Write] Vertex Delta Scale: Vertex delta scale computed over the entire dataset.

Type

(Vector)