# Why do I get a 'context is incorrect' error when trying to use Python bpy.ops.nla.tracks.add()with the NLA? [duplicate]

I am trying to use bpy.ops.nla.tracks.add() but I get this error:

• You can also do this with low level methods blender.org/api/blender_python_api_current/… ... perhaps change your q to how to add tracks to NLA using python for both context override etc and low lev methods. – batFINGER Sep 18 '16 at 15:04
• But I also want yo use the function ' Add transition' in the menu bar with the methods 'bpy.ops.nla.transition_add()' which also has the same error. – Berdon Sep 18 '16 at 23:46