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

The detail can be got in the image which is achieved through the screenshots

  • 1
    $\begingroup$ 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. $\endgroup$ – batFINGER Sep 18 '16 at 15:04
  • $\begingroup$ 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. $\endgroup$ – Berdon Sep 18 '16 at 23:46