3
$\begingroup$

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.

$\endgroup$
4
$\begingroup$

There are two things you need to do -

  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.

enter image description here

  1. Ensure that Auto-Run Python Scripts is enabled in your preferences.

enter image description here

$\endgroup$
  • $\begingroup$ Hello. I am looking for a universal solution that is not as part of the blender file. Is there an "autostart.py" type of file that Blender runs when it opens? $\endgroup$ – Mo Hossny Dec 28 '17 at 9:44
  • 1
    $\begingroup$ 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. $\endgroup$ – sambler Dec 29 '17 at 1:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.