User Tools

Site Tools


macros:function:timelines.importmarkersfromstring

This is an old revision of the document!


Function

Timelines.ImportMarkersFromString

Void Timelines.ImportMarkersFromString(
  Int32 timelineId, 
  String importMappingVersion, 
  String csvFilePath, 
  AcwFrameRate frameRate
)
API https://api.avolites.com/16.0/api/Timelines.ImportMarkersFromString.html
description Imports markers into the timeline.
namespace Timelines
parameter timelineId ( Int32 ): The timeline ID.
importMappingVersion ( String ): The XML node for the version of the mapping to use.
csvFilePath ( String ): The csv file path.
frameRate ( AcwFrameRate ): The framerate to import.
return value Void
Arguments
  • timelineId is the identifier or the timeline you want to import the markers into. Unlike for other functions which expect a handle this one expects a titanId. You may retrieve this e.g. from Web API, or you use e.g. Handles.GetTitanIdFromHandle to get the titanId for a specific handle by its usernumber:
    • Timelines.ImportMarkersFromString(1819, …) – example with hardcoded titanId * Timelines.ImportMarkersFromString(Handles.GetTitanIdFromHandle(“timelineHandleUN=1”), …) – example to get the titanId from a usernumber
Example in

Timeline: Import Markers:

<step>Timelines.ImportMarkersFromString(
  Handles.GetTitanIdFromHandle("timelineHandleUN=1"), 
  "&lt;Version /&gt;", 
  "C:\Users\sb\Documents\Titan\Markers\test.csv", 
  Timecode.ParseFrameRate(100))
</step>
Also used in
Remarks
You could leave a comment if you were logged in.
macros/function/timelines.importmarkersfromstring.1680515740.txt.gz · Last modified: 2023/04/03 09:55 by icke_siegen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki