Advanced project example

This project mainly uses workflow data to build widgets and send OSC messages — all based on a REST API request.

Description

The provided example project reads data from a REST API and stores it.

This data includes device names as well as other information, such as device colors.

A dropdown is generated from the available device names.

When the dropdown selection is changed, the corresponding color information (if available) is loaded and sent out via OSC.


On executing generic event

  1. Send a GET request to the endpoint.

  2. Save the result into the object entities.

  3. Create another entity parameter where the dropdown can save the latest selection.

  4. Write information into the widget label indicating that the API has been updated.

On change of the dropdown

  1. Find the matching color value based on this selection

  2. If the color exists:  • Update the widget with the color information  • Send an OSC message with this color information

  3. If the color does not exist:  • Update the widget to an empty state  • Do not send an OSC message

Last updated