I wrote a Blender Script to create me images and Text elements (via Python Script) in a Timeline. All Works! But via Console it doesn't Work. I know, it has something to do with the GUI and the context objects i used: But how i should change this?
Error when i try running command Line blender -b C:\Users\xxxxx\test.blend --background -P C:\Users\xxxxx\timeline.py
bpy.ops.sequencer.effect_strip_add(type='TEXT', frame_start=frame_start, frame_end=frame_end, channel=10)
obj1=bpy.ops.transform.seq_slide(value=(-6, 5), orient_axis_ortho='X', snap=False, view2d_edge_pan=True)
bpy.data.scenes["Scene"].sequence_editor.sequences_all['Text'].text=text1
textKey='Text'
count=-1
Working Example if i execute my Python Code in Blender (GUI)

