unreal.MetaSoundInputViewModel

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

Bases: MVVMViewModelBase

Viewmodel class for MetaSound inputs. Allows widgets in UMG to bind to MetaSound literals. Useful for creating knobs, sliders, and other widgets for setting MetaSound input parameters.

C++ Source:

  • Plugin: TechAudioTools

  • Module: TechAudioToolsMetaSound

  • File: MetaSoundViewModel.h

Editor Properties: (see get_editor_property/set_editor_property)

  • data_type (Name): [Read-Write] Returns the data type of the initialized MetaSound input.

  • input_name (Name): [Read-Write] Sets the name of the initialized MetaSound input.

  • is_array (bool): [Read-Write] True if the initialized MetaSound input is an array.

  • is_initialized (bool): [Read-Write] True if this MetaSoundInputViewModel has been initialized.

  • literal (MetasoundFrontendLiteral): [Read-Write] The MetaSound Literal belonging to the initialized MetaSound input.

  • literal_type (MetasoundFrontendLiteralType): [Read-Write] Returns the Literal Type belonging to the initialized MetaSound input.

property data_type: Name

[Read-Write] Returns the data type of the initialized MetaSound input.

Type:

(Name)

get_literal_value_as_text() Text

Returns the value of this input’s MetaSound Literal as a text value.

Return type:

Text

property input_name: Name

[Read-Write] Sets the name of the initialized MetaSound input.

Type:

(Name)

property is_array: bool

[Read-Write] True if the initialized MetaSound input is an array.

Type:

(bool)

property is_initialized: bool

[Read-Only] True if this MetaSoundInputViewModel has been initialized.

Type:

(bool)

property literal: MetasoundFrontendLiteral

[Read-Write] The MetaSound Literal belonging to the initialized MetaSound input.

Type:

(MetasoundFrontendLiteral)

property literal_type: MetasoundFrontendLiteralType

[Read-Only] Returns the Literal Type belonging to the initialized MetaSound input.

Type:

(MetasoundFrontendLiteralType)