I need to detect scene strips in the VSE on the current frame, meaning on what strip is the play head at this moment? However I can't seem to find the right type(?) to attach the ".strip_elem_from_frame" function to, in order to get the info/name/type on the strip. Here's a test script which must run in a screen with a sequencer with scene and movie strips in it:
import bpy
#update at frame change
def currentStrip(*pArgs):
print("Current Strip: "+str(bpy.context.sequences[0].strip_elem_from_frame(bpy.context.scene.frame_current))) #Doesn't detect any strips at all.
#add frame change handle
def attachAsHandler():
for f in bpy.app.handlers.frame_change_pre:
bpy.app.handlers.frame_change_pre.remove(f)
bpy.app.handlers.frame_change_pre.append(currentStrip)
currentStrip()
attachAsHandler()