System Information
Win 8.1, GTX1070
Blender Version
Broken: 2.78c e92f235283
Short description of error
bpy.ops.action.new() does nothing when invoked from a script. Maybe you're not supposed to but then why is it listed in the API?
Exact steps for others to reproduce the error
Create some object. Create an action in the action editor. Open a text editor and write
import bpy bpy.context.area.type = 'DOPESHEET_EDITOR' bpy.context.space_data.mode = 'ACTION' bpy.ops.action.new() bpy.context.area.type = 'TEXT_EDITOR'
and click run script. Nothing happens. I would expect the same thing happening that happens when you click the add action button in the UI: a new action is created with identical keyframes and then selected in the action editor list automatically.
edit: changed from Addons to BF Blender tag.