I replaced RPR.ShowMessageBox(text, 'test', 1) with reapy.show_message_box(text, title='test', mode='ok-cancel'). This allows a simpler import reapy instead of from reapy import reascript_api as RPR, but also more expressive function arguments. I thought it was better for a template to show how the reapy API is simpler to use and more pythonic than the native ReaScript API.
I replaced
RPR.ShowMessageBox(text, 'test', 1)
withreapy.show_message_box(text, title='test', mode='ok-cancel')
. This allows a simplerimport reapy
instead offrom reapy import reascript_api as RPR
, but also more expressive function arguments. I thought it was better for a template to show how the reapy API is simpler to use and more pythonic than the native ReaScript API.