Key-value converter

Convert the value of the source to its corresponding parent value based on a table of key-value pairs. The key-value converter converts heterogeneous data, such as a color to value.

Key-value editor

You can open the key-value editor by selecting Edit next to the key-value converter in advanced dynamic link editor.

Item Name Description

1

Converter path

The path to the converter.

2

Add

Adds a key-value table row.

3

Delete

Deletes the selected key-value table row.

4

Data type

Indicates the data type of keys or values. Select to choose a different data type.

5

Key

A converter key (source value).

6

Value

A value that corresponds with the key in the same row (output value).

Tip: The value in the first row is the default value. If the source value does not correspond with any converter key, the converter returns the default value.

Properties

Property Description

Mode

The direction of the dynamic link:
  • Read from the source node to the parent.
  • Write from the parent to the source node.
  • Read from the source node to the parent and write from the parent to the source node.

Source

A variable with a value corresponding to a key.

Output

The value associated with the key in the map.

Example