Table of Contents

Example

Timeline: Import Markers

by: Sebastian Beutel with massive help from Gregory Haynes, March 2023
published: here
description: Import a marker file into a designated timeline
remarks: from the facebook group: https://www.facebook.com/groups/Avolites/posts/2787203324745217/

functions

Code

ImportMarkerMacros.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros>
  <macro id="Wiki.Macros.Timeline.ImportMarkers" name="Import Markers TL 1">	
    <sequence>	  
      <step>Timelines.ImportMarkersFromString(
        Handles.GetTitanIdFromHandle("timelineHandleUN=1"), 
        "&lt;Version /&gt;", 
        "C:\Users\sb\Documents\Titan\Markers\test.csv", 
        Timecode.ParseFrameRate(100))
      </step>
    </sequence>	
  </macro>
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

Essentially it is just calling Timelines.ImportMarkersFromString() with the correct arguments (see Timelines.ImportMarkersFromString for more detailed explanations and other solutions):

How to use it

  1. put your markers file to a suitable location and adjust the arguments (path, framerate) in the macro accordingly
  2. this may be handy if you need to work on your markers and need to import the same file multiple times