macros:function:timelines.importmarkersfromstring
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
macros:function:timelines.importmarkersfromstring [2023/04/03 09:55] – icke_siegen | macros:function:timelines.importmarkersfromstring [2023/04/04 06:41] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 17: | Line 17: | ||
^ ::: | csvFilePath ( [[macros: | ^ ::: | csvFilePath ( [[macros: | ||
^ ::: | frameRate ( [[macros: | ^ ::: | frameRate ( [[macros: | ||
- | ^ return value | [[macros: | + | ^ return value | [[macros: |
+ | |||
+ | **This article was written with massive help from Gregory Haynes; I couldn' | ||
+ | |||
+ | There is also the function [[https:// | ||
== Arguments == | == 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. [[macros: | + | * **timelineId** is the identifier or the timeline you want to import the markers into. Unlike for other functions which expect a [[macros: |
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | * **importMappingVersion** is a string to be parsed as XML that can define what all the columns are and how to read them. | ||
+ | |||
+ | > Example CSV File: | ||
+ | externalId, | ||
+ | 0, | ||
+ | blah,Marker 2, | ||
+ | 999,Another Marker, | ||
+ | |||
+ | > By default it will assume that the CSV file contains headers and it will attempt to use those to figure out which column is which. If it cannot figure out the column headers it will assume the order specified above i.e. " | ||
+ | |||
+ | The smallest possible string as importMappingVersion is ''"& | ||
+ | |||
+ | > Here is an example of what that string could be (single quotes used instead of double quotes to make it easier to use in a string): | ||
+ | ''< | ||
+ | |||
+ | * **csvFilePath** is the absolute path (including filename) to the file which is to be imported, e.g. ''" | ||
+ | * **frameRate** is the framerate to import. This is important to convert frame numbers with different framerates (not tested yet). The API lists [[https:// | ||
+ | ^ Value ^ Description | | ||
+ | | Fps24 | 24 frames/sec | | ||
+ | | Fps25 | 25 frames/sec | | ||
+ | | Fps29DF | 29.97 frames/sec ('drop frame' | ||
+ | | Fps30 | 30 frames/sec | | ||
+ | | Fps44 | internal timecode, 44 frames/sec | | ||
+ | | Fps100 | Winamp and how it is displayed in the Cue View | | ||
+ | | Fps60 | 60 frames/sec | | ||
+ | | Fps1000 | Milliseconds | | ||
+ | However it looks like you need to use [[macros: | ||
macros/function/timelines.importmarkersfromstring.1680515740.txt.gz · Last modified: 2023/04/03 09:55 by icke_siegen