Live FX Documentation
  • 📚Getting Started
    • Introduction
      • Feature Comparison
      • Download & Install
      • Settings
        • System Settings
          • Custom Commands
          • Advanced
        • User Settings
        • Video IO Settings
          • Black Magic Troubleshooting
      • Helpful Shortcuts
        • Construct Shortcuts
        • Player Shortcuts
        • Viewport Shortcuts
        • ColorFX Shortcuts
        • Stage Lights Shortcuts
    • The Basics
      • Project Settings
      • Change Shot Framerate and Resolution
      • Change the Shot Length
      • Timecode
      • Working with Layers
      • General Tips
    • Helpful Links
    • First Time Start-Up
    • User Interface
  • ⚡Quickstart Example Projects
    • Simple Video Playback
    • Green Screen with 360 Background
    • LED Wall - Projection Mapping
    • LED Wall - Without Projection Mapping
    • Packaged Unreal Engine project Example
  • 📼Video Playback
    • Video-IO Settings
    • Playback h.264 files
    • Import Media and Maintain Folder Structure
  • 🎥Camera Tracking
    • Camera and Lens Calibration
    • Camera Trackers
      • REtracker Bliss
      • ZEISS CinCraft Scenario
      • MoSys
      • Stype
      • OptiTrack
      • HTC Mars Camtrack
      • Free D
      • iPhone Apps
    • How to apply camera tracking to a layer, image, or mask
    • How to manually adjust camera tracking speed and delay
    • How to delay the Inner Frustum
    • How to apply FIZ (Zoom and Focus) from Camera Tracking
  • Motion Control
    • Mark Roberts Motion Control (MRMC)
    • Motorized Precision
    • eMotimo
    • SISU
  • 🟩Green Screen Workflow
    • Qualifiers
    • Green Screen with Set Extension Workflow
    • Working with Ultimatte
  • 📺LED Workflow
    • Setting up an LED Wall
      • Set Up Nvidia Mosaic
      • Nvidia Multi-GPU Configuration
    • Stage Manager
    • How to make the inner frustum green
    • Switcher Node
    • Tips when using Projection Mapping
    • Using HDR
    • Projection Mapping Tutorials
      • Part 1: General Introduction to Projection Mapping
      • Part 2: : Projection Mapping - Media Types & Projection Models
      • Part 3: Projection Mapping on multiple walls
      • Part 4: Projection Mapping with Unreal Engine
      • Part 5: Set Extensions
  • 💡Lighting
    • Getting started with Image Based Lighting
    • Lighting Brands
      • Aputure
      • Creamsource
      • Kino Flo
        • Mimik 120
        • Freestyle
      • Prolycht
      • Quasar Science
    • How to Sample Multiple Video Sources through Videowall
    • Rec2020 Example Project
      • Megapixel HELIOS settings for Mimik
      • Blackmagic UltraStudio 4k Mini Settings
      • Setup Display Colorspace
      • Video IO Settings
      • Create and Set up your Project
      • Create and set up your Shot
      • Fix Jitter
  • 🎮Unreal Engine
    • Known Issues with Live FX <> Unreal
    • Set up Unreal Engine with Live FX
    • Play your Unreal Engine scene as a Game
    • How to Package an Unreal Engine Project for Live FX
      • Command Line Arguments
      • Before You Package
    • Unreal Web Remote Control (Optional)
    • Control UE through OSC
    • Take Recorder
    • Working with Sequencer
    • Unreal Optimization
      • Console Commands / Command Line Arguments
      • List of all Console Variables and Commands
        • Scalability Groups Console Variables
        • Renderer Console Variables
      • Baking Light
      • DLSS
  • ©️Cuebric Workflow
    • Projection Mapping with Cuebric Files
    • Non-Projection Mapping with Cuebric
  • 🧊2.5d Workflow
    • Projection Mapping 2.5d Workflow
    • Non-Projection Mapping 2.5d Workflow
  • 🖥️Multi-Computer Workflows
    • Sync Players
    • Sync Projects across Multiple Nodes
  • 🌅Live Looks - Live Grade LED Walls
    • How to Purchase and Install Live Looks
    • How to set up Live Looks with Brompton
    • Live Grading with Live Looks
  • 🗃️Compositing
    • Working with the Alpha Channel
    • Re-Map EXR channels
    • Working with Mattes
    • Opacity and Blend Modes
  • 🆘General Troubleshooting
    • 📰Licensing the Software
    • 🕙Dealing with Delay
    • 🖥️Networking Tips
    • ❓Frequently Asked Questions (FAQs)
      • Does Live FX support Unreal 5.3?
      • Why won't Live FX open when I have a second monitor hooked up?
      • How do I switch the toolset from Live FX to Scratch?
      • Where is the record button?
      • Why is my image dark (or why are my colors wrong)?
      • How do I close Live FX?
      • How do I minimize Live FX?
      • What is SCRATCH? What is Assimilate? Are they the same thing as Live FX?
      • How do I change the mouse from moving in circles to left/right?
    • Stuttering Playback
  • 📘User Guide (Old)
Powered by GitBook
On this page
  • Overview
  • Set up Live FX
  • Set up Unreal Engine
  • Control in Live FX
  • Custom Blueprints
  1. Unreal Engine

Control UE through OSC

PreviousUnreal Web Remote Control (Optional)NextTake Recorder

Last updated 1 year ago

Overview

You can use OSC to do many things. We are going to create a layer in Live FX and use it to drive our Sun in Unreal Engine.

Live FX currently has one way of using OSC that uses the first layer's Canvas transform controls, to control custom properties in Unreal Engine via a blueprint the user can set up.

There are a total of 8 float values that can be used in Unreal Engine, they correspond to the following properties in the Canvas menu (of the top dummy layer).

The numbers here correspond to the Index numbers in the Get OSC Message Float At Index node in Unreal Engine:

You can set these numbers to control many different areas of your Unreal Engine Scene, but for us, the default settings we will use will be to reserve 0 for Sky Light Intensity and we'll reserve 5,6,7 for Intensity and location in the sky:

0: Sky Light Intensity 5: Directional Light Intensity 6: Directional Light Pitch 7: Directional Light Roll

Set up Live FX

  1. Go to Live FX Menu>Live Links

  2. Turn on OSC Sender

  3. Turn On, enable Animation and press connect.

  4. For your ip, if it's the local machine, you can use 127.0.0.1. For port, you can use 9003 or whatever port, but you'll need to remember this for later.

  5. Create a new layer, and make sure it is the very top layer. This will be a "dummy" layer, do not add color grading or anything else to it.

Set up Unreal Engine

You can find the whole blueprint here, copy and paste it into your Level Blueprint, and then connect the Event Begin Play to the Create OSC Server Exec pin. It may have some errors, but you should be able to fix them by following the instructions below.

Here is another pastebin with a few more things added, that will serve as a template of sorts, for OSC.

Manual Instructions for creating the Blueprint.

  1. In your Level Blueprint (or you could create a new one), from Event Begin Play, add the node Create OSCServer. 1. For the IP Address you can use 0.0.0.0. 2. For the Port use 9003 or whatever you set in Live FX 3. Check Start Listening 4. Write the same Server Name you added in Live FX for the Server Name.

  2. Drag off of the Return Value pin and Promote to Variable and (optionally) rename the variable to OSCServer.

  3. Then add Unbind All Events from On Osc Bundle Received and then add Bind Event to On Osc Message Received.

  4. Drag off the Event socket, type Create Event. Then in the dropdown select Create a matching event.

  5. Rename the event to OSCMessageReceived and press Compile Blueprint.

  6. Drag off the Message pin and promote to a variable. The default name will be Message, we'll keep it the same for now.

  7. Drag off that node and Get OSC Message Float at Index, do this three times. For the Index, we'll use 5,6 and 7.

  8. From the left-side, drag over the Message Variable and select Get Message.

  9. From that variable, connect it to the three Get OSC Message Float At Index.

  10. Draf off the execution pin of the last node, Uncheck Context Sensitive and search for Set Relative Rotation. Choose the Transformation>Set Relative Rotation.

  11. Right-click on New Rotation and select Split Struct Pin.

  12. Drag the Value from 5 to the Z, 6 to the Y, and 7 to the X.

  13. Drag your Directional Light from your scene into the blueprint. Then from the Blue output pin, connect that to the Target of the Set Relative Rotation. This will automatically create a node in between.

Control in Live FX

Back in Live FX, to control the X, Y, and Z, you click on the top layer, select the Canvas menu at the bottom left, and then you can use the Rotate X, Y, and Z to control the Sun in Unreal Engine (must be in play mode).

Custom Blueprints

You can create a blueprint and add many components to it, then you can go to the construction script and do some custom things to have one variable effect multiple components in different ways, in this example, multiplying the intensity variable so that it would be 10x the number that goes to

Here is another example. For headlights in a city scene, we used a blueprint called "00_BP_Headlights", which is a simple actor blueprint with a single Spot Light component.

Inside of each vehicle blueprint, we brought in this blueprint twice, these two act like the headlights.

In the Level blueprint, we Get OSC Message Float At Index, then Get All Actors Of Class. We select the class 00_BP_Headlights, then add a For Each Loop, and set the intensity to the Value set in the OSC message.

Remember, the numbers that correspond in Live FX are the following from the top dummy layer:

🎮
💡
https://blueprintue.com/blueprint/m6-a4t3l/
https://blueprintue.com/blueprint/hpe6xzd2/