In 2.80 I can add a Text effect strip with the following:
effName = "eff" + tCStr[-3:] effName = sequences.new_effect( name=tField, type="TEXT", channel=tChan, frame_start=fStart, frame_end=fEnd) That works fine.
However, I also need to remove the strip.
I can remove Image strips with:
sequences.remove(image_strip1) And I can remove Sound strips with:
sequences.remove(sound_strip1) I have tried all of the following to remove the Text strips with results as shown.
I'm sure there is a simple way to do this, or failing that, at least some way to do it.
Notes:
• effName is set to a range of values from eff000 to eff010
• tField is set to a range of values from Text0000 to Text0010
• xName is set to either effxxx or Textxxxx
sequences.remove_effect(xName) AttributeError: 'bpy_prop_collection' object has no attribute 'remove_effect'
sequences.effect_strip_remove(xName) AttributeError: 'bpy_prop_collection' object has no attribute 'effect_strip_remove'
sequences.remove(xName) TypeError: Sequences.remove(): error with argument 1, "sequence" - Function.sequence expected a Sequence type, not str
sequences.remove(eval(xName)) File "<'string>", line 1, in NameError: name 'eff000' is not defined
sequences.remove(eval(xName)) File "<'string>", line 1, in NameError: name 'Text0000' is not defined