does bpy.ops.nla work at all?

does anyone know what the correct context is for bpy.ops.nla. …

pretty much whatever i try i get a poll fail from whichever operator i call.
is it broken in the latest release?

this api is slowly driving me insane - i dread having to use any ops as it seems to be a complete black art what you have to plug into them!

any help very much appreciated!

hmm it seems as though you actually have to switch the window type to nla before you can call any of the nla ops, even those that don’t really need to have an nla window open (for example converting an action to nla)…

seems a bit odd, especially as blender will never draw the window.

current_type=bpy.context.area.type
bpy.context.area.type=‘NLA_EDITOR’
…all of your bpy.ops.nla calls here…
bpy.context.area.type=current_type

wondering if this will have a speed impact as im doing this several thousand times in the course of a script…