I hereby claim:
- I am schiffty on github.
- I am schiffty (https://keybase.io/schiffty) on keybase.
- I have a public key ASAzbtvsnzIm1ksG_hdNSmFOSjbOxcwacpnBUaOOBrKqfwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def frames_to_TC (frames): | |
h = int(frames / 86400) | |
m = int(frames / 1440) % 60 | |
s = int((frames % 1440)/24) | |
f = frames % 1440 % 24 | |
return ( "%02d:%02d:%02d:%02d" % ( h, m, s, f)) | |
# Breakdown of the steps above: | |
# Hours: Divide frames by 86400 (# of frames in an hour at 24fps). Round down to nearest integer. |
parseEDL: function() { | |
this.resetPanel(); | |
//Output array: 1-In TC 2-Out TC 3-Color 4-Text | |
var matches,locators, i=0; | |
var eventregex = /(\d{3}[^\n]*([0-9:]{11})\s([0-9:]{11})\s?\n[\s\S]*?(?=^\d{3}|^>|^$))/gim; | |
var locatorsregex = /\* ?LOC.*[\d:]{10,11}\s+([\w]+) +([^\r\n]*?)\r?\n/gi; | |
var input_content = this.input.contents + "\n"; |