unreal.MetaSoundLiteralViewModel_Integer

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

Bases: MVVMViewModelBase

Viewmodel for binding an integer-type MetaSound Literal with a widget.

C++ Source:

  • Plugin: TechAudioTools

  • Module: TechAudioToolsMetaSound

  • File: MetaSoundLiteralViewModel.h

Editor Properties: (see get_editor_property/set_editor_property)

  • literal (MetasoundFrontendLiteral): [Read-Write] The bound MetaSound Literal value. Should be bound using a two-way binding with the Literal variable of a MetaSoundInputViewModel.

  • normalized_value (float): [Read-Write] The SourceValue normalized to a 0-1 range based on the set Range values. Used for UI like sliders and knobs that use a normalized range.

  • range (Int32Range): [Read-Write] Sets the min and max values of the UI range. Range bounds should be closed (either Inclusive or Exclusive) and not open.

  • source_value (int32): [Read-Write] The value of the bound Literal as an integer.

get_step_size() float

Get Step Size

Return type:

float

property literal: MetasoundFrontendLiteral

[Read-Write] The bound MetaSound Literal value. Should be bound using a two-way binding with the Literal variable of a MetaSoundInputViewModel.

Type:

(MetasoundFrontendLiteral)

property normalized_value: float

[Read-Write] The SourceValue normalized to a 0-1 range based on the set Range values. Used for UI like sliders and knobs that use a normalized range.

Type:

(float)

property range: Int32Range

[Read-Write] Sets the min and max values of the UI range. Range bounds should be closed (either Inclusive or Exclusive) and not open.

Type:

(Int32Range)

property source_value: int

[Read-Write] The value of the bound Literal as an integer.

Type:

(int32)