New functions to return selected segments in lua
|Opened on:||Sunday, June 13, 2010 - 21:46|
|Last modified:||Saturday, July 27, 2013 - 04:41|
Currently in the selection interface you can select one, two, or more sections of segments and run limited scripts against them. Would it be possible to have some lua functions that return the selection number and start and end segments numbers? This way scripts could be run with out hard coding the the segment you want to work with.
get_selections_count() returns number of selections.
get_selection_start(selection number) returns start of selection supplied
get_selection_end(selection number) returns end of selection supplied
get_selections() returns all selections in an array (selection number, selection start, selection end)