Okay so looking through the API there doesn't seem to be a way to set the reverse flag of a take. There is a way of getting it with
Code:
reaper.PCM_Source_GetSectionInfo(src_parent)
but no complementary function to set.
Any hints here? I'd rather not resort to calling actions with reaper.Main_OnCommand(40751, 0).