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.
Asked
Active
Viewed 2,784 times
2 Answers
5
There are two things you need to do -
- Setup the script in blenders text editor. The name of the text block needs to end with
.pyand the register checkbox needs to be enabled.
- Ensure that Auto-Run Python Scripts is enabled in your preferences.
sambler
- 55,387
- 3
- 59
- 192
2
In blender 2.8x it's the same things to do :
- rename your script file in the text editor with .py at the end
- check register in the Text menu (this option is greyed out until you rename your file)
cscholl
- 153
- 7



bpy.app.handlers. – sambler Dec 29 '17 at 01:02