Start script on open blender file

I have written up a script for my model. But there is a bit of a problem with it. As in I have to run the script every time I open the file. I want the script to run automatically when I open the blender File.

migrated from stackoverflow.comAug 31 '15 at 22:28

This question came from our site for professional and enthusiast programmers.

1. Setup the script in blenders text editor. The name of the text block needs to end with .py and the register checkbox needs to be enabled.
• You should ask that as a question, with a bit more info on what you want to achieve. Without modifying blender itself, I think an addon should be able to do what you want, it can setup bpy.app.handlers. – sambler Dec 29 '17 at 1:02