function startSubs() { noText = "" WriteFileStart(blankclip(bigclip, length=1), "_sublist.txt", "noText") } function endSub(clip thisClip, int length, string filetext) { thisStart = frameToTime(frameoffset) global frameoffset = frameoffset+length thisEnd = frameToTime(frameoffset) endtext = "Dialogue: 0,"+thisStart+","+thisEnd+",End" \+",,0000,0000,0000,,{\pos(360,240)}{\fad(1000,1000)}{\be1}" \+filetext+Chr(13)+Chr(10) WriteFileEnd(thisClip, "_sublist.txt", "endtext") } function addSub(clip thisClip, string style, string filetext) { numframes = framecount(thisClip) shift = (style=="Section") ? 0 : 30 thisStart = (frameoffset>0) ? (frameoffset-shift) : (frameoffset) thisStart = thisStart+30 thisStart = frameToTime(thisStart) global frameoffset = frameoffset+numframes-shift thisEnd = frameoffset+30 thisEnd = frameToTime(thisEnd) progtext = "Dialogue: 0,"+thisStart+","+thisEnd+",Progress" \+",,0000,0000,0000,," \+"{\fad(1000,1000)}{\move(0,474,722,474)}{\p4}m 50 0 b 100 0 100 60 50 60 b 0 60 0 0 50 0{\p0}"+Chr(13)+Chr(10) linetext = "Dialogue: 0,"+thisStart+","+thisEnd+",Progress" \+",,0000,0000,0000,," \+"{\fad(1000,1000)}{\pos(360,474)}{\alpha&H70&}{\p1}m 0 0 l 720 0 720 2 0 2{\p0}"+Chr(13)+Chr(10) filetext = "Dialogue: 0,"+thisStart+","+thisEnd+","+style \+",,0000,0000,0000,," \+filetext+Chr(13)+Chr(10) (style!="Blank") ? WriteFileEnd(thisClip, "_sublist.txt", "filetext") : nop() (style=="Trick") ? WriteFileEnd(thisClip, "_sublist.txt", "progtext") : nop() (style=="Trick") ? WriteFileEnd(thisClip, "_sublist.txt", "linetext") : nop() }