Scripting the end frame of an Animation

Is there a way to set the end frame of a animation from a script?
I see I can set the current frame and I can read what the last frame is from the Blender object, but I can’t seem to set it.

E E

Maybe this:

http://www.blender.org/documentation/242PythonDoc/NLA.Action-class.html#getFrameNumbers

getFrameNumbers will get the frames at which animation was inserted on this Action

I think you need this.

1 Like