I use the following code to add a text strip:
tStripAdd = "frame_start=" + fStart + ", frame_end=" + fEnd + ", channel=" + tChan + ", type='TEXT'"
print('tStripAdd = ' + tStripAdd)
#tStripAdd = frame_start=1, frame_end=164, channel=4, type='TEXT'- result of print command
bpy.ops.sequencer.effect_strip_add(tStripAdd)
I get the following error:
TypeError: Calling operator "bpy.ops.sequencer.effect_strip_add" error, expected a string enum in ('INVOKE_DEFAULT', 'INVOKE_REGION_WIN', 'INVOKE_REGION_CHANNELS', 'INVOKE_REGION_PREVIEW', 'INVOKE_AREA', 'INVOKE_SCREEN', 'EXEC_DEFAULT', 'EXEC_REGION_WIN', 'EXEC_REGION_CHANNELS', 'EXEC_REGION_PREVIEW', 'EXEC_AREA', 'EXEC_SCREEN')
Any suggestion as to what the problem is? How to solve it?