
Return string.format( "%02d:%02d:%02d,%03d ", hour, minute, second, millisecond) Millisecond = math.floor( 1000 *(position - math.floor(position)) ) If note then note = string.gsub(note, "| ", " ") end - remove all the | characters Note = s: match( ".* \nIMGRESOURCEFLAGS.* ") GetSetItemState(item, " ") - get the current item's chunk from X-Raym's Add all items on selected track into item selection TOOLS -įunction selected_items_on_tracks( track) user_folder = buf -"C:\\Users\\" - need to be test + item selected => export only selected items as subtitles + no item selected => export all items on first selected track as subtitles

+ negative first (selected) item pos fix (consider first (selected) item start as time = 0 if cursor pos is after) # if empty fields, back to default values # default name is track name - thanks to spk77 for split at comma + Better track and item selection restoration + If no track selected, selected items notes can be exported anyway + Selected items on non selected track will also be exported + Multitrack export support -> every selected track can would be exported * Forum Thread: Lua Script: Export/Import subtitles SubRip SRT format

Note that the initial cursor position is very important You can select items accross multiple tracks. * Instructions: Select at least one item or one track with items that you want to export. * About: Export item's note selection (or on selected track) as offset by edit cursor time SRT subtitles * ReaScript Name: Export selection as SRT subtitles with offset
