Note: Contents in this page are still preliminary and the instructions are subject to be changed
Overview
Get Motive streaming with at least one rigid body. Make sure the Streaming settings are set up correctly, and the rigid body is active under the Assets pane.
You can install the OptiTrack - NatNet Streaming Client plugin by putting the plugin files into one of the following directories:
C:\Program Files\Epic Games\[Engine Version]\Engine\Plugins
[Project Directory]\Plugins
Go to Edit → Plugins and enable the OptiTrack - LiveLink plugin as well as the Built-In LiveLink plugin in UE.
The LiveLink pane can be accessed from Window → Live Link from the toolbar in UE.
In the LiveLink pane under Source options, go to the OptiTrack Source menu and configure the proper connection settings and click Create. Please make sure to use matching network settings configured from the Streaming pane in Motive.
If your settings were correct, then the plugin will list out all of the detected rigid bodies, and they should have green dots next to them signifying that the asset has been created and is receiving data. If the dots are yellow, then either your take is paused, or there is some sort of connection error.
Add a camera actor from the Place Actors pane or a static mesh from the project into your scene. For the static meshes, make sure their Mobility setting is set to Movable.
Select an actor you want to animate, click the “Add Component” button on the details pane, and add LiveLinkController.
Under the Live Link Controller component that has been added, configure the following properties. You will need to expand the settings to change this:
Now the objects with the LiveLinkController component attached and configured will be animated in the scene.
When the camera system is synchronized to another master sync device and a timecode signal is feeding into eSync, then the received timecode can be used in UE project through the plugin.
In Motive, double-check and make sure the camera frame rate is a multiple of the genlock/timecode input. If this is not the case, then you will get warning messages, since there will not be a regular one-to-one assignment of timecode frames/subframes and motion capture frames.
In the LiveLink pane, select the OptiTrack source, then set the Evaluation Mode to Timecode under the settings. Once that's done, the Timecode Frame Rate should get set automatically.
Click Add New button on the Content Browser and select Blueprint Class. Then, search and select LiveLinkTimecodeProvider as the parent class to add. Name the created blueprint to something such as "OptitrackTimeCode".
Open the created blueprint and select one of the rigid body asset as the Subject Key, then compile and save it.
From Edit → Project Settings, go to General Settings and for Timecode Provider enter the name of the blueprint created in step 4:
Check that the correct timecode is now seen in the Take Recorder pane.